hinzugefügt einige Resourcen, bezüglich der Secrets, DaemonSets, ReplicaSets, PersistentVolume, PersistentVolumeClaim
This commit is contained in:
parent
6874bcc06c
commit
7683a117df
9
Kubernetes/LFS258/car-map.yaml
Normal file
9
Kubernetes/LFS258/car-map.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: fast-car
|
||||||
|
data:
|
||||||
|
car.make: Ford
|
||||||
|
car.model: Mustang
|
||||||
|
car.trim: Shelby
|
||||||
|
|
||||||
50
Kubernetes/LFS258/ds.yaml
Normal file
50
Kubernetes/LFS258/ds.yaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
deprecated.daemonset.template.generation: "1"
|
||||||
|
creationTimestamp: "2022-10-13T13:23:51Z"
|
||||||
|
generation: 2
|
||||||
|
name: ds-one
|
||||||
|
namespace: default
|
||||||
|
resourceVersion: "14677"
|
||||||
|
uid: edde0acd-3f7c-4e75-8f5d-59ed2d13ada4
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
system: DaemonSetOne
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
system: DaemonSetOne
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: nginx:1.15.1
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: nginx
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
resources: {}
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
securityContext: {}
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
updateStrategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 0
|
||||||
|
maxUnavailable: 1
|
||||||
|
type: OnDelete
|
||||||
|
status:
|
||||||
|
currentNumberScheduled: 1
|
||||||
|
desiredNumberScheduled: 1
|
||||||
|
numberAvailable: 1
|
||||||
|
numberMisscheduled: 0
|
||||||
|
numberReady: 1
|
||||||
|
observedGeneration: 2
|
||||||
|
updatedNumberScheduled: 1
|
||||||
50
Kubernetes/LFS258/ds_changed_strategy.yaml
Normal file
50
Kubernetes/LFS258/ds_changed_strategy.yaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
deprecated.daemonset.template.generation: "1"
|
||||||
|
creationTimestamp: "2022-10-13T13:23:51Z"
|
||||||
|
generation: 2
|
||||||
|
name: ds-two
|
||||||
|
namespace: default
|
||||||
|
resourceVersion: "14677"
|
||||||
|
uid: edde0acd-3f7c-4e75-8f5d-59ed2d13ada4
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
system: DaemonSetTwo
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
system: DaemonSetTwo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: nginx:1.15.1
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: nginx
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
resources: {}
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
securityContext: {}
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
updateStrategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 0
|
||||||
|
maxUnavailable: 1
|
||||||
|
type: RollingUpdate
|
||||||
|
status:
|
||||||
|
currentNumberScheduled: 1
|
||||||
|
desiredNumberScheduled: 1
|
||||||
|
numberAvailable: 1
|
||||||
|
numberMisscheduled: 0
|
||||||
|
numberReady: 1
|
||||||
|
observedGeneration: 2
|
||||||
|
updatedNumberScheduled: 1
|
||||||
1
Kubernetes/LFS258/favorite
Normal file
1
Kubernetes/LFS258/favorite
Normal file
@ -0,0 +1 @@
|
|||||||
|
blue
|
||||||
2
Kubernetes/LFS258/primary/black
Normal file
2
Kubernetes/LFS258/primary/black
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
k
|
||||||
|
know as key
|
||||||
1
Kubernetes/LFS258/primary/cyan
Normal file
1
Kubernetes/LFS258/primary/cyan
Normal file
@ -0,0 +1 @@
|
|||||||
|
c
|
||||||
1
Kubernetes/LFS258/primary/magenta
Normal file
1
Kubernetes/LFS258/primary/magenta
Normal file
@ -0,0 +1 @@
|
|||||||
|
m
|
||||||
1
Kubernetes/LFS258/primary/yellow
Normal file
1
Kubernetes/LFS258/primary/yellow
Normal file
@ -0,0 +1 @@
|
|||||||
|
y
|
||||||
10
Kubernetes/LFS258/pvc.yaml
Normal file
10
Kubernetes/LFS258/pvc.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: pvc-one
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 200Mi
|
||||||
19
Kubernetes/LFS258/rs.yaml
Normal file
19
Kubernetes/LFS258/rs.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: ReplicaSet
|
||||||
|
metadata:
|
||||||
|
name: rs-one
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
system: ReplicaOne
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
system: ReplicaOne
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx:1.15.1
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
6
Kubernetes/LFS258/secret.yaml
Normal file
6
Kubernetes/LFS258/secret.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: lf-secret
|
||||||
|
data:
|
||||||
|
password: TEZUckAxbgo=
|
||||||
24
Kubernetes/LFS258/simpleshell.yaml
Normal file
24
Kubernetes/LFS258/simpleshell.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: shell-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
|
volumeMounts:
|
||||||
|
- name: car-vol
|
||||||
|
mountPath: /etc/cars
|
||||||
|
volumes:
|
||||||
|
- name: car-vol
|
||||||
|
configMap:
|
||||||
|
name: fast-car
|
||||||
|
# env:
|
||||||
|
# - name: ilike
|
||||||
|
# valueFrom:
|
||||||
|
# configMapKeyRef:
|
||||||
|
# name: colors
|
||||||
|
# key: favorite
|
||||||
|
# envFrom:
|
||||||
|
# - configMapRef:
|
||||||
|
# name: colors
|
||||||
Loading…
x
Reference in New Issue
Block a user