Skip to content

Commit 5403831

Browse files
committed
svc exercise complte
1 parent 01ee64d commit 5403831

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

exercises/20-rc-and-rs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,7 @@ spec:
154154
- containerPort: 8080
155155
protocol: TCP
156156
```
157+
158+
#### 10. Pod that I've scheduled is in waiting state. How would I debug this issue?
159+
`Reference`: [My pod stays waiting](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-pod-replication-controller/#my-pod-stays-waiting)
160+

exercises/30-svc.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
#### 1. From the following manifest, change the service type to Load Balancer. Try to access the service by accessing the load balancer URL. (This excercise assumes you already have vote application deployed in your environment.)
1+
#### 1. Complete the following Service manifest for Pod with the label `app=webapp` and which is running on port `8888`.
2+
```
3+
kind: Service
4+
apiVersion: v1
5+
metadata:
6+
name: service
7+
```
8+
9+
#### 2. From the following manifest, change the service type to Load Balancer. Try to access the service by accessing the load balancer URL. (This excercise assumes you already have vote application deployed in your environment.)
210
```
311
apiVersion: v1
412
kind: Service
@@ -17,7 +25,7 @@ spec:
1725
type: NodePort
1826
```
1927

20-
#### 2. How would you access your service on Port 80 from internet for the following?
28+
#### 3. How would you access your service on Port 80 from internet for the following?
2129
```
2230
apiVersion: v1
2331
kind: Service
@@ -34,7 +42,7 @@ spec:
3442
targetPort: 80
3543
```
3644

37-
#### 3. The following service is created in `instavote` namespace. Use kubectl command to change its namespace to `default`.
45+
#### 4. The following service is created in `instavote` namespace. Use kubectl command to change its namespace to `default`.
3846
```
3947
apiVersion: v1
4048
kind: Service
@@ -51,4 +59,5 @@ spec:
5159
targetPort: 80
5260
```
5361

54-
#### 4.
62+
#### 5. Write a Service manifest which listens to a RS with ports 80, 8080 and 8443. The Service should be created in the `dev` namespace.
63+
`Reference`: [Multi-port Service](https://kubernetes.io/docs/concepts/services-networking/service/#multi-port-services)

exercises/40-deploy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#### 1.

0 commit comments

Comments
 (0)