hinzugefügt die einigen Workloads Definitionen
This commit is contained in:
parent
e941ec6ba2
commit
505bc8f749
26
Kubernetes/deployment-definiton.yaml
Normal file
26
Kubernetes/deployment-definiton.yaml
Normal 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
|
||||
21
Kubernetes/nginx-definition.yaml
Normal file
21
Kubernetes/nginx-definition.yaml
Normal 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"
|
||||
15
Kubernetes/pod-definition_with_resource_limits.yaml
Normal file
15
Kubernetes/pod-definition_with_resource_limits.yaml
Normal 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"
|
||||
13
Kubernetes/postgres_with_env_variable.yaml
Normal file
13
Kubernetes/postgres_with_env_variable.yaml
Normal 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
|
||||
22
Kubernetes/replicaSet-definition.yaml
Normal file
22
Kubernetes/replicaSet-definition.yaml
Normal 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
|
||||
19
Kubernetes/replication_controller-definition.yaml
Normal file
19
Kubernetes/replication_controller-definition.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user