hinzugefügt die einigen Workloads Definitionen

This commit is contained in:
David Aster 2022-10-06 14:07:22 +02:00
parent e941ec6ba2
commit 505bc8f749
6 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-deployment
labels:
app: myapp
type: frontend
spec:
template:
metadata:
name: myapp-pod
labels:
app: myapp
type: frontend
spec:
containers:
- name: nginx-container
image: nginx
resources:
limits:
memory: "500Mi"
cpu: "500Mi"
replicas: 5
selector:
matchLabels:
type: frontend

View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: Pod
metadata:
name: nginx-2
labels:
env: production
type: frontend
spec:
containers:
- name: nginx
image: nginx
resources:
limits:
memory: "500Mi"
cpu: "500Mi"
- name: busybox
image: busybox
resources:
limits:
memory: "500Mi"
cpu: "500Mi"

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
spec:
containers:
- name: nginx-container
image: nginx
resources:
limits:
memory: "500Mi"
cpu: "500Mi"

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Pod
metadata:
name: postgres
labels:
tier: db-tier
spec:
containers:
- name: postgres
image: postgres
env:
- name: POSTGRES_PASSWORD
value: mysecretpassword

View File

@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: myapp-replicaset
labels:
app: myapp
type: frontend
spec:
template:
metadata:
name: myapp-pod
labels:
app: myapp
type: frontend
spec:
containers:
- name: nginx-container
image: nginx
replicas: 5
selector:
matchLabels:
type: frontend

View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: myapp-rc
labels:
app: myapp
type: frontend
spec:
template:
metadata:
name: myapp-pod
labels:
app: myapp
type: frontend
spec:
containers:
- name: nginx-container
image: nginx
replicas: 3