hinzugefügt einige Resourcen, bezüglich der Secrets, DaemonSets, ReplicaSets, PersistentVolume, PersistentVolumeClaim

This commit is contained in:
David 2022-10-14 21:27:26 +02:00
parent 6874bcc06c
commit 7683a117df
12 changed files with 174 additions and 0 deletions

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

View 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

View File

@ -0,0 +1 @@
blue

View File

@ -0,0 +1,2 @@
k
know as key

View File

@ -0,0 +1 @@
c

View File

@ -0,0 +1 @@
m

View File

@ -0,0 +1 @@
y

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

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Secret
metadata:
name: lf-secret
data:
password: TEZUckAxbgo=

View 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