This commit is contained in:
Pamir Erdem
2018-08-01 11:46:57 +03:00
parent ec74cd62ce
commit 2645df26ff
25 changed files with 47 additions and 7 deletions

20
01-pods/kuard-new.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
labels:
run: kuard
name: kuard
internalVersion: 0.0.3
name: kuardnew
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:1
imagePullPolicy: IfNotPresent
name: kuardnew
ports:
- containerPort: 8080
name: http
protocol: TCP
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Never

View File

@@ -4,7 +4,7 @@ metadata:
labels: labels:
run: kuard run: kuard
name: kuard name: kuard
internalVersion: 0.0.1 internalVersion: 0.0.2
name: kuard name: kuard
spec: spec:
containers: containers:
@@ -17,4 +17,4 @@ spec:
protocol: TCP protocol: TCP
resources: {} resources: {}
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: Never restartPolicy: Never

View File

@@ -13,15 +13,15 @@ spec:
name: kuard name: kuard
resources: resources:
requests: requests:
cpu: "500m"
memory: "128Mi" memory: "128Mi"
cpu: "500m"
limits: limits:
cpu: "1000m" memory: "128Mi"
memory: "1024Mi" cpu: "500m"
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http
protocol: TCP protocol: TCP
resources: {} resources: {}
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
restartPolicy: OnFailure restartPolicy: OnFailure

View File

@@ -10,4 +10,4 @@ spec:
image: nginx image: nginx
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
nodeSelector: nodeSelector:
disktype: ssd cpu: mukemmel

View File

@@ -0,0 +1,20 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *" # syntax is a same as in system cron jobs
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: nginx
args:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure