labels and other pod features

This commit is contained in:
Pamir Erdem
2018-08-07 15:53:29 +03:00
parent cff2b81a64
commit 753628c40a
2 changed files with 25 additions and 4 deletions

21
01-pods/git-repo-pod.yaml Normal file
View 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: .

View File

@@ -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