File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,36 @@ pods at all times.
116116
117117
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
You can’t perform that action at this time.
0 commit comments