apiVersion: v1
kind: Service
metadata:
name: whoami
namespace: default
spec:
ports:
- name: web
port: 80
selector:
app: containous
task: whoami
---
kind: Endpoints
subsets:
- addresses:
- ip: 10.10.0.1
- ip: 10.10.0.2
name: whoami2
port: 8080
task: whoami2
- ip: 10.10.0.3
- ip: 10.10.0.4
name: whoamitls
- name: web-secure
port: 443
- ip: 10.10.0.5
- ip: 10.10.0.6
name: whoami3
- name: web-secure2
port: 8443
scheme: https
task: whoami3
- ip: 10.10.0.7
- ip: 10.10.0.8