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:
|
||||
run: kuard
|
||||
name: kuard
|
||||
internalVersion: 0.0.1
|
||||
internalVersion: 0.0.2
|
||||
name: kuard
|
||||
spec:
|
||||
containers:
|
||||
@@ -17,4 +17,4 @@ spec:
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Never
|
||||
restartPolicy: Never
|
||||
|
||||
@@ -13,15 +13,15 @@ spec:
|
||||
name: kuard
|
||||
resources:
|
||||
requests:
|
||||
cpu: "500m"
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
cpu: "1000m"
|
||||
memory: "1024Mi"
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: OnFailure
|
||||
restartPolicy: OnFailure
|
||||
|
||||
@@ -10,4 +10,4 @@ spec:
|
||||
image: nginx
|
||||
imagePullPolicy: IfNotPresent
|
||||
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