cka考试 创建一个deployment并暴露Service

[root@k8-master ~]# cat deployment1.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80

cka考试 创建一个deployment并暴露Service

  暴露端口服务报错,何解cka考试 创建一个deployment并暴露Service

  将存在的svc删掉

cka考试 创建一个deployment并暴露Service

 

上一篇:k8s 20220125 Deployment升级


下一篇:[Java] Barn Repair