k8s service 配置详解
1.yaml格式的Service定义文件的完整内容 apiVersion: v1kind: Servicematadata: name: string namespace: string labels: - name: string annotations: - name: stringspec: selector: [] type: string ...
·
1.yaml格式的Service定义文件的完整内容
apiVersion: v1
kind: Service
matadata:
name: string
namespace: string
labels:
- name: string
annotations:
- name: string
spec:
selector: []
type: string
clusterIP: string
sessionAffinity: string
ports:
- name: string
protocol: string
port: int
targetPort: int
nodePort: int
status:
loadBalancer:
ingress:
ip: string
hostname: string
#进入k8s的 容器当中
kubectl exec -it test-pod -c test-emptydir /bin/sh
Ingress组件 traefik
参考链接
1.https://blog.csdn.net/watermelonbig/article/details/79693962
更多推荐
已为社区贡献1条内容
所有评论(0)