Skip to content

Commit e12c937

Browse files
trisperalvarin
andauthored
add deployment.yaml example (#1709)
Co-authored-by: Alvaro Gonzalez <alvaro.gonzalez@csc.fi>
1 parent b8a3fe2 commit e12c937

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/cloud/rahti/concepts.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,36 @@ pods at all times.
116116

117117
![Deployment](img/deployment.png)
118118

119+
*`deployment.yaml`*:
120+
```yaml
121+
apiVersion: extensions/v1beta1
122+
kind: Deployment
123+
metadata:
124+
name: deployment-name
125+
spec:
126+
selector:
127+
matchLabels:
128+
app: deployment-name
129+
template:
130+
metadata:
131+
labels:
132+
app: deployment-labels
133+
spec:
134+
containers:
135+
- name: pod
136+
image: <your_image>
137+
volumeMounts:
138+
- mountPath: /path/to/folder/
139+
name: pvc
140+
ports:
141+
- containerPort: xx
142+
protocol: TCP
143+
volumes:
144+
- name: vol
145+
persistentVolumeClaim:
146+
claimName: pvc
147+
```
148+
119149
### InitContainer
120150

121151
_InitContainer_ is a container in a pod that is intended run to completion before

0 commit comments

Comments
 (0)