For the sake of being thorough, here are the YAML files for the services in the example:
apiVersion: v1 kind: ReplicationController metadata: name: coffee-rc namespace: nginx-ingress spec: replicas: 2 template: metadata: labels: app: coffee spec: containers: - name: coffee image: nginxdemos/hello ports: - containerPort: 80 apiVersion: v1 kind: Service metadata: name: coffee-svc labels: app: coffee namespace: nginx-ingress spec: type: NodePort ports: - port: 80 targetPort: 80 protocol: TCP name: http selector: app: coffee apiVersion: v1 kind: ReplicationController metadata: name: tea-rc namespace: nginx-ingress spec: replicas: 3 template: metadata: labels: app: tea spec: containers: - name: tea image: nginxdemos/hello ports: - containerPort: 80 apiVersion: v1 kind: Service metadata: name: tea-svc labels: app: tea namespace: nginx-ingress spec: type: NodePort ports: - port: 80 targetPort: 80 protocol: TCP name: http selector: app: tea -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.