mirror of
https://github.com/acedemand/kubernetes-essentials.git
synced 2021-08-24 18:29:57 +03:00
renamed
This commit is contained in:
20
01-pods/kuard-new.yaml
Normal file
20
01-pods/kuard-new.yaml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ spec:
|
|||||||
image: nginx
|
image: nginx
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
disktype: ssd
|
cpu: mukemmel
|
||||||
|
|||||||
20
03-other-specs/jobs/01-cronjob.yaml
Normal file
20
03-other-specs/jobs/01-cronjob.yaml
Normal 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
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user