-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdeployment.yaml
More file actions
36 lines (36 loc) · 855 Bytes
/
deployment.yaml
File metadata and controls
36 lines (36 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: apps/v1
kind: Deployment
metadata:
name: workflow-docs
spec:
selector:
matchLabels:
app: workflow-docs-nginx
replicas: 2
template:
metadata:
labels:
app: workflow-docs-nginx
spec:
initContainers:
- name: flux-pull
image: ghcr.io/kingdonb/sites/workflow:serve
imagePullPolicy: Always
command:
- "/usr/local/bin/flux-pull.sh"
volumeMounts:
- mountPath: /usr/share/nginx/html
name: html
containers:
- name: nginx
image: ghcr.io/kingdonb/sites/workflow:serve # build
imagePullPolicy: Always
ports:
- containerPort: 80
volumeMounts:
- mountPath: /usr/share/nginx/html
name: html
volumes:
- name: html
emptyDir:
sizeLimit: 100Mi