apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: https
|
|
labels:
|
|
app: https
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: https
|
|
tier: frontend
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: https
|
|
tier: frontend
|
|
spec:
|
|
containers:
|
|
- image: nginx
|
|
name: https
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: https-configs
|
|
mountPath: /etc/nginx/conf.d
|
|
# Load the configuration files for nginx
|
|
volumes:
|
|
- name: https-configs
|
|
configMap:
|
|
name: https-config
|
|
|