Add system design notebook image
As well as two Kubernetes basic exercises.
This commit is contained in:
6
exercises/kubernetes/solutions/pods_01_solution.md
Normal file
6
exercises/kubernetes/solutions/pods_01_solution.md
Normal file
@ -0,0 +1,6 @@
|
||||
## Pods 01 - Solution
|
||||
|
||||
```
|
||||
kubectl run nginx --image=nginx --restart=Never
|
||||
kubectl get pods
|
||||
```
|
19
exercises/kubernetes/solutions/services_01_solution.md
Normal file
19
exercises/kubernetes/solutions/services_01_solution.md
Normal file
@ -0,0 +1,19 @@
|
||||
## Services 01 - Solution
|
||||
|
||||
```
|
||||
kubectl run nginx --image=nginx --restart=Never --port=80 --labels="app=dev-nginx"
|
||||
|
||||
cat << EOF > nginx-service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx-service
|
||||
spec:
|
||||
selector:
|
||||
app: dev-nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 9372
|
||||
EOF
|
||||
```
|
Reference in New Issue
Block a user