mirror of
https://github.com/acedemand/kubernetes-essentials.git
synced 2021-08-24 18:29:57 +03:00
labels and other pod features
This commit is contained in:
21
01-pods/git-repo-pod.yaml
Normal file
21
01-pods/git-repo-pod.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: gitrepo-volume-pod
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx:alpine
|
||||
name: web-server
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
volumes:
|
||||
- name: html
|
||||
gitRepo:
|
||||
repository: https://github.com/luksa/kubia-website-example.git
|
||||
revision: master
|
||||
directory: .
|
||||
@@ -13,11 +13,11 @@ spec:
|
||||
name: kuard
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
memory: "1024Mi"
|
||||
cpu: "1000m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
memory: "1024Mi"
|
||||
cpu: "1000m"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
|
||||
Reference in New Issue
Block a user