You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/30-svc.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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.)
2
10
```
3
11
apiVersion: v1
4
12
kind: Service
@@ -17,7 +25,7 @@ spec:
17
25
type: NodePort
18
26
```
19
27
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?
21
29
```
22
30
apiVersion: v1
23
31
kind: Service
@@ -34,7 +42,7 @@ spec:
34
42
targetPort: 80
35
43
```
36
44
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`.
38
46
```
39
47
apiVersion: v1
40
48
kind: Service
@@ -51,4 +59,5 @@ spec:
51
59
targetPort: 80
52
60
```
53
61
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.
0 commit comments