应用外部服务到k8s集群内部

案例

---
apiVersion: v1
kind: Service
metadata:
  name: mysql
  namespace: james
spec:
  ports:
    - port: 3306
---
kind: Endpoints
apiVersion: v1
metadata:
  name: mysql
  namespace: james
subsets:
  - addresses:
      - ip: 192.168.0.194
    ports:
      - port: 3306

你可能感兴趣的:(应用外部服务到k8s集群内部)