32 lines
676 B
YAML
32 lines
676 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: severed-blog
|
|
namespace: severed-apps
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: severed-blog
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: severed-blog
|
|
spec:
|
|
containers:
|
|
- name: web
|
|
image: severed-blog:v0.3
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- containerPort: 80
|
|
|
|
volumeMounts:
|
|
- name: nginx-config-vol
|
|
mountPath: /etc/nginx/conf.d/default.conf
|
|
subPath: default.conf
|
|
|
|
volumes:
|
|
- name: nginx-config-vol
|
|
configMap:
|
|
name: severed-blog-config
|