Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8891d3f

Browse files
Kalyan Reddy DaidaKalyan Reddy Daida
Kalyan Reddy Daida
authored and
Kalyan Reddy Daida
committed
Welcome to Stack Simplify
1 parent 36f5eec commit 8891d3f

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

‎07-PODs-with-YAML/README.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99

1010
spec:
1111
```
12-
- **API Objects Reference:** https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core
12+
- **Pod API Objects Reference:** https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core
1313
1414
## Step-02: Create Simple Pod Definition using YAML
1515
- We are going to create a very basic pod definition
@@ -71,3 +71,8 @@ http://<WorkerNode-Public-IP>:<NodePort>
7171
http://<WorkerNode-Public-IP>:31231
7272
```
7373

74+
## API Object References
75+
- **Pod**: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core
76+
- **Service**: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#service-v1-core
77+
78+

‎07-PODs-with-YAML/kube-manifests/01-kube-base-definition.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
apiVersion:
2-
kind:
1+
apiVersion:
2+
kind:
33
metadata:
4-
4+
55
spec:
66

77
# Types of Kubernetes Objects
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1 # String
2+
kind: Pod # String
3+
metadata: # Dictionary
4+
name: myapp-pod
5+
labels: # Dictionary
6+
app: myapp
7+
spec:
8+
containers: # List
9+
- name: myapp
10+
image: stacksimplify/kubenginx:1.0.0
11+
ports:
12+
- containerPort: 80
13+
14+
15+
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: myapp-pod-nodeport-service
4+
name: myapp-pod-nodeport-service# Name of the Service
55
spec:
66
type: NodePort
77
selector:
8+
# Loadbalance traffic across Pods matching this label selector
89
app: myapp
9-
ports:
10-
- port: 80
11-
targetPort: 80
12-
nodePort: 31231
10+
# Accept traffic sent to port 80
11+
ports:
12+
- name: http
13+
port: 80 # Service Port
14+
targetPort: 80 # Container Port
15+
nodePort: 31231 # NodePort

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /