k8s-training-app/02_wordpress/yaml/02_deployment.yaml

23 lines
350 B
YAML
Raw Normal View History

2020-01-08 11:00:26 +01:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
spec:
replicas: 1
selector:
matchLabels:
app: wordpress
template:
metadata:
labels:
app: wordpress
spec:
containers:
- name: wordpress
image: wordpress:5
ports:
- containerPort: 80
# vim: set ts=2 sw=2 et: