Skip to content

Commit 5dc5cad

Browse files
committed
Welcome to Stack Simplify
1 parent d30c52a commit 5dc5cad

File tree

8 files changed

+16
-97
lines changed

8 files changed

+16
-97
lines changed

04-Kubernetes-Fundamentals-with-YAML/04-03-ReplicaSets-with-YAML/backup/01-kube-base-definition.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

04-Kubernetes-Fundamentals-with-YAML/04-03-ReplicaSets-with-YAML/backup/02-replicaset-definition.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

04-Kubernetes-Fundamentals-with-YAML/04-03-ReplicaSets-with-YAML/backup/03-replicaset-LoadBalancer-servie.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
apiVersion: apps/v1
2-
kind: ReplicaSet
3-
metadata:
4-
name: myapp2-rs
5-
spec:
2+
kind: ReplicaSet
3+
metadata: #Dictionary
4+
name: myapp2-rs
5+
spec: # Dictionary
66
replicas: 3
77
selector:
88
matchLabels:
99
app: myapp2
10-
template:
10+
template:
1111
metadata: # Dictionary
1212
name: myapp2-pod
13-
labels: # Dictionary
14-
app: myapp2
13+
labels: # Dictionary
14+
app: myapp2 # Key value paids
1515
spec:
1616
containers: # List
1717
- name: myapp2-container
1818
image: stacksimplify/kubenginx:2.0.0
19-
ports:
20-
- containerPort: 80
21-
22-
19+
ports:
20+
- containerPort: 80
2321

Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
apiVersion: v1
2-
kind: Service
2+
kind: Service
33
metadata:
44
name: replicaset-loadbalancer-service
55
spec:
6-
type: LoadBalancer
7-
selector:
8-
app: myapp2
6+
type: LoadBalancer # ClusterIp, # NodePort
7+
selector:
8+
app: myapp2
99
ports:
1010
- name: http
11-
port: 80
12-
targetPort: 80
13-
11+
port: 80 # Service Port
12+
targetPort: 80 # Container Port

04-Kubernetes-Fundamentals-with-YAML/04-04-Deployments-with-YAML/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ kubectl get nodes -o wide
2626
http://<Load-Balancer-Service-IP>
2727
```
2828
## API References
29-
- **Deployment:** https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#deployment-v1-apps
29+
- [Deployment](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#deployment-v1-apps)
Original file line numberDiff line numberDiff line change
@@ -1,23 +0,0 @@
1-
apiVersion: apps/v1
2-
kind: Deployment
3-
metadata:
4-
name: myapp3-deployment
5-
spec:
6-
replicas: 3
7-
selector:
8-
matchLabels:
9-
app: myapp3
10-
template:
11-
metadata: # Dictionary
12-
name: myapp3-pod
13-
labels: # Dictionary
14-
app: myapp3
15-
spec:
16-
containers: # List
17-
- name: myapp3-container
18-
image: stacksimplify/kubenginx:3.0.0
19-
ports:
20-
- containerPort: 80
21-
22-
23-
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
apiVersion: v1
2-
kind: Service
3-
metadata:
4-
name: deployment-loadbalancer-service
5-
spec:
6-
type: LoadBalancer
7-
selector:
8-
app: myapp3
9-
ports:
10-
- name: http
11-
port: 80
12-
targetPort: 80
13-

0 commit comments

Comments
 (0)