--- apiVersion: v1 kind: Service metadata: name: web spec: type: NodePort selector: web: ok ports: - port: 80 targetPort: 80 --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: nginx name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx web: ok spec: containers: - image: nginx name: nginx ports: - containerPort: 80 --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: httpd name: httpd spec: replicas: 1 selector: matchLabels: app: httpd template: metadata: labels: app: httpd web: ok spec: containers: - image: httpd name: httpd ports: - containerPort: 80
Comments
0 B
|👍
/👎
0 B
|👍
/👎