SIMULATION
Score: 4%

Task
Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached .
Solution:
kubectl run kucc8 --image=nginx --dry-run -o yaml > kucc8.yaml
# vi kucc8.yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
name: kucc8
spec:
containers:
- image: nginx
name: nginx
- image: redis
name: redis
- image: memcached
name: memcached
- image: consul
name: consul
#
kubectl create -f kucc8.yaml
#12.07
SIMULATION
Create a deployment as follows:
Name: nginx-app
Using container nginx with version 1.11.10-alpine
The deployment should contain 3 replicas
Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.
Finally, rollback that update to the previous version 1.11.10-alpine.
solution



SIMULATION
List ''nginx-dev'' and ''nginx-prod'' pod and delete those pods
kubect1 get pods -o wide
kubectl delete po ''nginx-dev''
kubectl delete po ''nginx-prod''
SIMULATION
Create a deployment as follows:
Name: nginx-random
Exposed via a service nginx-random
Ensure that the service and pod are accessible via their respective DNS records
The container(s) within any pod(s) running as a part of this deployment should use the nginx Image
Next, use the utility nslookup to look up the DNS records of the service and pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.
Solution:



SIMULATION
Create a busybox pod that runs the command ''env'' and save the output to ''envpod'' file
kubectl run busybox --image=busybox --restart=Never ---rm -it -- env > envpod.yaml
Currently there are no comments in this discussion, be the first to comment!
Rory
19 days agoVashti
26 days agoDorathy
1 month agoBillye
1 month agoHillary
2 months agoCarlee
2 months agoLaurene
2 months agoRobt
2 months agoLenna
3 months agoAyesha
3 months agoElfrieda
3 months agoLynelle
3 months agoUla
4 months agoWilda
4 months agoErnest
4 months agoLettie
4 months agoColeen
5 months agoNoel
5 months agoRuthann
5 months agoMartina
5 months agoHolley
6 months agoTy
6 months agoCatherin
6 months agoJaney
6 months agoAdela
7 months agoMerissa
7 months agoJaime
7 months agoGerald
8 months agoAnjelica
8 months agoAlberto
10 months agoLottie
11 months agoRossana
12 months agoChantell
1 year agoLai
1 year agoKanisha
1 year agoAlonzo
1 year agoBernadine
1 year agoTresa
1 year agoRochell
1 year agoElvera
1 year agoShawnta
1 year agoOsvaldo
1 year agoNgoc
2 years agoRyan
2 years agoDaren
2 years agoJustine
2 years agoGeraldine
2 years agoDominque
2 years agoDyan
2 years agoRozella
2 years agoRoosevelt
2 years agoLoren
2 years agoNorah
2 years agorimoha Kellis
2 years ago