2019-03-11 13:54:05 +00:00
|
|
|
kind: Deployment
|
2020-01-16 09:14:06 +00:00
|
|
|
apiVersion: apps/v1
|
2019-03-11 13:54:05 +00:00
|
|
|
metadata:
|
|
|
|
name: whoami
|
2019-03-14 14:56:06 +00:00
|
|
|
namespace: default
|
2019-03-11 13:54:05 +00:00
|
|
|
labels:
|
|
|
|
app: containous
|
|
|
|
name: whoami
|
2019-03-14 14:56:06 +00:00
|
|
|
|
2019-03-11 13:54:05 +00:00
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: containous
|
|
|
|
task: whoami
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: containous
|
|
|
|
task: whoami
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: containouswhoami
|
|
|
|
image: containous/whoami
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
2019-03-14 14:56:06 +00:00
|
|
|
|
2019-03-11 13:54:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoami
|
2019-03-14 14:56:06 +00:00
|
|
|
namespace: default
|
|
|
|
|
2019-03-11 13:54:05 +00:00
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 80
|
|
|
|
selector:
|
|
|
|
app: containous
|
|
|
|
task: whoami
|
2019-06-11 13:12:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: Deployment
|
2020-01-16 09:14:06 +00:00
|
|
|
apiVersion: apps/v1
|
2019-06-11 13:12:04 +00:00
|
|
|
metadata:
|
|
|
|
name: whoamitcp
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app: containous
|
|
|
|
name: whoamitcp
|
|
|
|
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: containous
|
|
|
|
task: whoamitcp
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: containous
|
|
|
|
task: whoamitcp
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: containouswhoamitcp
|
|
|
|
image: containous/whoamitcp
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: footcp
|
|
|
|
port: 8080
|
|
|
|
selector:
|
|
|
|
app: containous
|
|
|
|
task: whoamitcp
|