Skip to content

Commit 18f3eca

Browse files
committed
Welcome to Stack Simplify
1 parent e0e6659 commit 18f3eca

File tree

9 files changed

+67
-42
lines changed

9 files changed

+67
-42
lines changed

04-Kubernetes-Fundamentals-with-YAML/04-02-PODs-with-YAML/backup/01-kube-base-definition.yml

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

04-Kubernetes-Fundamentals-with-YAML/04-02-PODs-with-YAML/backup/02-pod-definition.yml

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

04-Kubernetes-Fundamentals-with-YAML/04-02-PODs-with-YAML/backup/03-pod-LoadBalancer-service.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
1+
apiVersion: v1 # String
2+
kind: Pod # String
3+
metadata: # Dictionary
4+
name: myapp-pod
5+
labels: # Dictionary
6+
app: myapp # Key value paids
7+
spec:
8+
containers: # List
9+
- name: myapp
10+
image: stacksimplify/kubenginx:1.0.0
11+
ports:
12+
- containerPort: 80
213

314

415

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: myapp-pod-loadbalancer-service
5+
spec:
6+
type: LoadBalancer # ClusterIp, # NodePort
7+
selector:
8+
app: myapp
9+
ports:
10+
- name: http
11+
port: 80 # Service Port
12+
targetPort: 80 # Container Port

04-Kubernetes-Fundamentals-with-YAML/04-03-ReplicaSets-with-YAML/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ http://<Load-Balancer-Service-IP>
7373
```
7474

7575
## API References
76-
- **ReplicaSet:** https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#replicaset-v1-apps
76+
- [ReplicaSet](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#replicaset-v1-apps)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion:
2+
kind:
3+
metadata:
4+
5+
spec:
6+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: apps/v1
2+
kind: ReplicaSet
3+
metadata:
4+
name: myapp2-rs
5+
spec:
6+
replicas: 3
7+
selector:
8+
matchLabels:
9+
app: myapp2
10+
template:
11+
metadata: # Dictionary
12+
name: myapp2-pod
13+
labels: # Dictionary
14+
app: myapp2
15+
spec:
16+
containers: # List
17+
- name: myapp2-container
18+
image: stacksimplify/kubenginx:2.0.0
19+
ports:
20+
- containerPort: 80
21+
22+
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: replicaset-loadbalancer-service
5+
spec:
6+
type: LoadBalancer
7+
selector:
8+
app: myapp2
9+
ports:
10+
- name: http
11+
port: 80
12+
targetPort: 80
13+

0 commit comments

Comments
 (0)