Compare commits
3 Commits
838367ce01
...
notes
| Author | SHA1 | Date | |
|---|---|---|---|
| aa66138f3e | |||
| f6aefa0a24 | |||
|
|
1bee88aa57 |
20
4-deployment.yaml
Normal file
20
4-deployment.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: web-deploy
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: web
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: web
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: app-config
|
||||||
BIN
Notes/Core+concepts+-2.pdf
Normal file
BIN
Notes/Core+concepts+-2.pdf
Normal file
Binary file not shown.
BIN
Notes/Docker+vs+Containerd+resource.pdf
Normal file
BIN
Notes/Docker+vs+Containerd+resource.pdf
Normal file
Binary file not shown.
BIN
Notes/Kubernetes+-CKA-+0100+-+Core+Concepts.pdf
Normal file
BIN
Notes/Kubernetes+-CKA-+0100+-+Core+Concepts.pdf
Normal file
Binary file not shown.
BIN
Notes/Kubernetes+-CKA-+0200+-+Scheduling.pdf
Normal file
BIN
Notes/Kubernetes+-CKA-+0200+-+Scheduling.pdf
Normal file
Binary file not shown.
BIN
Notes/Kubernetes+-CKA-+0300+-+Logging-Monitoring.pdf
Normal file
BIN
Notes/Kubernetes+-CKA-+0300+-+Logging-Monitoring.pdf
Normal file
Binary file not shown.
Binary file not shown.
BIN
Notes/Kubernetes+-CKA-+0600+-+Security.pdf
Normal file
BIN
Notes/Kubernetes+-CKA-+0600+-+Security.pdf
Normal file
Binary file not shown.
BIN
Notes/Kubernetes-CKA-0500-Cluster+Maintenance-v1.2.pdf
Normal file
BIN
Notes/Kubernetes-CKA-0500-Cluster+Maintenance-v1.2.pdf
Normal file
Binary file not shown.
BIN
Notes/Kubernetes_Field_Merging_Guide.docx
Normal file
BIN
Notes/Kubernetes_Field_Merging_Guide.docx
Normal file
Binary file not shown.
BIN
Notes/Networking - security.pdf
Normal file
BIN
Notes/Networking - security.pdf
Normal file
Binary file not shown.
BIN
Notes/Networking.pdf
Normal file
BIN
Notes/Networking.pdf
Normal file
Binary file not shown.
BIN
Notes/Static+Pods.pdf
Normal file
BIN
Notes/Static+Pods.pdf
Normal file
Binary file not shown.
BIN
Notes/Udemy+Kubernetes+taints-tolerations.pdf
Normal file
BIN
Notes/Udemy+Kubernetes+taints-tolerations.pdf
Normal file
Binary file not shown.
BIN
Notes/kubernetes-services-updated.pdf
Normal file
BIN
Notes/kubernetes-services-updated.pdf
Normal file
Binary file not shown.
8637
all-deploy-services.yaml
Normal file
8637
all-deploy-services.yaml
Normal file
File diff suppressed because it is too large
Load Diff
18
app-rs.yaml
Normal file
18
app-rs.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: ReplicaSet
|
||||||
|
metadata:
|
||||||
|
name: app-rs
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
tier: web
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
tier: web
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
|
|
||||||
12
app-svc.yaml
Normal file
12
app-svc.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: app-svc
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
tier: frontend
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
9
configmap.yaml
Normal file
9
configmap.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: app-config
|
||||||
|
data:
|
||||||
|
APP_COLOR: blue
|
||||||
|
APP_MODE: production
|
||||||
|
# oops, this key should be APP_VERSION but it's wrong
|
||||||
|
APP_VERSOIN: "1.0"
|
||||||
Reference in New Issue
Block a user