kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch20/user-controller/03-deployment.yaml

21 lines
412 B
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: user-controller
labels:
kiamol: ch20
spec:
selector:
matchLabels:
app: user-controller
template:
metadata:
labels:
app: user-controller
spec:
serviceAccountName: user-controller
automountServiceAccountToken: true
containers:
- image: kiamol/ch20-user-controller
name: controller