apiVersion: v1 kind: Service metadata: name: nginx1 namespace: default spec: selector: app: nginx1 ports: - protocol: TCP port: 80 targetPort: 80 --- apiVersion: v1 kind: Service metadata: name: nginx2 namespace: default spec: selector: app: nginx2 ports: - protocol: TCP port: 80 targetPort: 80 --- apiVersion: v1 kind: Service metadata: name: nginx3 namespace: default spec: selector: app: nginx3 ports: - protocol: TCP port: 80 targetPort: 80