kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch06/whoami/whoami.yaml

23 lines
386 B
YAML

apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: whoami-web
labels:
kiamol: ch06
spec:
replicas: 1
selector:
matchLabels:
app: whoami-web
template:
metadata:
labels:
app: whoami-web
spec:
containers:
- image: kiamol/ch02-whoami
name: web
ports:
- containerPort: 80
name: http