Closed bryfry closed 1 year ago
student@bchd:~/git/kubernetes-the-alta3-way$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node-1 Ready <none> 56s v1.25.5
node-2 Ready <none> 61s v1.25.5
multi-container-pod-design
Fixed, needed to merge in changes from main 🤦
persistent-configuration-with-configmaps
student@bchd:~/git/kubernetes-the-alta3-way$ tl persistent-configuration-with-configmaps
[+] Cleaning cluster
[+] Preparing persistent-configuration-with-configmaps
[+] Setup complete
[+] Testing persistent-configuration-with-configmaps
error: error reading mycode/config/nginx-base.conf: no such file or directory
error: error reading mycode/config/index-html-zork.html: no such file or directory
error: error reading mycode/config/nineteen-eighty-four.txt: no such file or directory
pod/nginx-configured created [-] Test failed
Fixed in https://github.com/alta3/kubernetes-the-alta3-way/commit/2c586c291b3c2a0d72993c4500e86a7b20bee2f0
student@bchd:~/git/kubernetes-the-alta3-way$ tl persistent-configuration-with-configmaps
[+] Cleaning cluster
[+] Preparing persistent-configuration-with-configmaps
[+] Setup complete
[+] Testing persistent-configuration-with-configmaps
configmap/nginx-base-conf created
configmap/index-html-zork created
configmap/nineteen-eighty-four created
pod/nginx-configured created
pod/nginx-configured condition met
NAME READY STATUS RESTARTS AGE
nginx-configured 1/1 Running 0 1s
[+] Test complete
student@bchd:~/git/kubernetes-the-alta3-way$ tl persistent-configuration-with-configmaps
[+] Cleaning cluster
[+] Preparing persistent-configuration-with-configmaps
[+] Setup complete
[+] Testing persistent-configuration-with-configmaps
error: failed to create configmap: configmaps "nginx-base-conf" already exists
error: failed to create configmap: configmaps "index-html-zork" already exists
error: failed to create configmap: configmaps "nineteen-eighty-four" already exists
pod/nginx-configured created
pod/nginx-configured condition met
NAME READY STATUS RESTARTS AGE
nginx-configured 1/1 Running 0 1s
[+] Test complete
fixed in https://github.com/alta3/kubernetes-the-alta3-way/commit/61256a4eb0abccc2b1e3a0f1dad6552e22d2d96f
horizontal-scaling-with-kubectl-scale
student@bchd:~/git/kubernetes-the-alta3-way$ tl horizontal-scaling-with-kubectl-scale
[+] Cleaning cluster
[+] Preparing horizontal-scaling-with-kubectl-scale
[+] Setup complete
[+] Testing horizontal-scaling-with-kubectl-scale
deployment.apps/webservice created
Error from server (NotFound): deployments.apps "sise-deploy" not found
Error from server (NotFound): deployments.apps "sise-deploy" not found
deployment.apps/webservice unchanged
error: the path "deployments/webby-deploy" does not exist
NAME READY UP-TO-DATE AVAILABLE AGE
webservice 0/3 3 0 1s
Error from server (NotFound): deployments.apps "sise-deploy" not found
[-] Test failed
This test.sh
doesn't match with the supplied manifest labs/yaml/webby-deploy-filled-out.yaml
- Creating a new issue.
init-containers
student@bchd:~/git/kubernetes-the-alta3-way$ tl init-containers
[+] Cleaning cluster
[+] Preparing init-containers
[+] Setup complete
[+] Testing init-containers
+ kubectl apply -f ../yaml/init-cont-pod.yaml
pod/myapp-pod created
+ kubectl apply -f ../yaml/myservice.yaml
service/myservice created
+ kubectl apply -f ../yaml/mydb.yaml
service/mydb created
+ kubectl wait --for condition=Ready --timeout 30s -f ../yaml/init-cont-pod.yaml
error: timed out waiting for the condition on pods/myapp-pod
[-] Test failed
exec'd into container with kubectl exec -it myapp-pod -c init-myservice -- /bin/sh
/ # nslookup myservice
Server: 172.16.3.10
Address: 172.16.3.10:53
Non-authoritative answer:
Name: myservice.default.svc.cluster.local
Address: 172.16.3.81
** server can't find myservice.svc.cluster.local: NXDOMAIN
** server can't find myservice.cluster.local: NXDOMAIN
** server can't find myservice.svc.cluster.local: NXDOMAIN
** server can't find myservice.cluster.local: NXDOMAIN
/ # echo $?
1
Expected:
/ # nslookup myservice
Server: 172.16.3.10
Address: 172.16.3.10:53
Non-authoritative answer:
Name: myservice.default.svc.cluster.local
Address: 172.16.3.166
*** Can't find myservice.svc.cluster.local: No answer
*** Can't find myservice.cluster.local: No answer
*** Can't find myservice.default.svc.cluster.local: No answer
*** Can't find myservice.svc.cluster.local: No answer
*** Can't find myservice.cluster.local: No answer
/ # echo $?
0
Fixed in https://github.com/alta3/kubernetes-the-alta3-way/commit/f866c8714723d3ddca0bce2577a5c03cc20bab31 - set busybox version to 1.34.0
student@bchd:~/git/kubernetes-the-alta3-way$ tl init-containers
[+] Cleaning cluster
[+] Preparing init-containers
[+] Setup complete
[+] Testing init-containers
+ kubectl apply -f ../yaml/init-cont-pod.yaml
pod/myapp-pod created
+ kubectl apply -f ../yaml/myservice.yaml
service/myservice created
+ kubectl apply -f ../yaml/mydb.yaml
service/mydb created
+ kubectl wait --for condition=Ready --timeout 30s -f ../yaml/init-cont-pod.yaml
pod/myapp-pod condition met
+ kubectl get pods
NAME READY STATUS RESTARTS AGE
myapp-pod 1/1 Running 0 20s
[+] Test complete
examining-resources-with-kubectl-describe
student@bchd:~/git/kubernetes-the-alta3-way$ tl examining-resources-with-kubectl-describe
[+] Cleaning cluster
[+] Preparing examining-resources-with-kubectl-describe
[+] Setup complete
[+] Testing examining-resources-with-kubectl-describe
+ kubectl run --port=8888 --image=registry.gitlab.com/alta3research/webby webweb
pod/webweb created
+ kubectl wait --for condition=Ready --timeout 60s pod/webweb
error: timed out waiting for the condition on pods/webweb
[-] Test failed
Fixed in https://github.com/alta3/kubernetes-the-alta3-way/commit/3eaa456c7a147589d6cd338192bcfd739b71072c - "webby to pull from correct url"
student@bchd:~/git/kubernetes-the-alta3-way$ tl examining-resources-with-kubectl-describe
[+] Cleaning cluster
[+] Preparing examining-resources-with-kubectl-describe
[+] Setup complete
[+] Testing examining-resources-with-kubectl-describe
+ kubectl run --port=8888 --image=registry.gitlab.com/alta3/webby webweb
pod/webweb created
+ kubectl wait --for condition=Ready --timeout 60s pod/webweb
pod/webweb condition met
+ kubectl delete pod webweb --now
pod "webweb" deleted
+ kubectl apply -f ../yaml/webweb-deploy.yaml
deployment.apps/webweb created
+ kubectl wait --for condition=Available --timeout 60s deployment.apps/webweb
deployment.apps/webweb condition met
[+] Test complete
create-and-configure-basic-pods
student@bchd:~/git/kubernetes-the-alta3-way$ tl create-and-configure-basic-pods
[+] Testing create-and-configure-basic-pods
+ kubectl apply -f ../yaml/simpleservice.yaml
pod/simpleservice created
+ kubectl wait --for condition=Ready --timeout 60s -f ../yaml/simpleservice.yaml
pod/simpleservice condition met
+ kubectl apply -f ../yaml/webby-pod01.yaml
pod/webservice01 created
+ kubectl wait --for condition=Ready --timeout 60s -f ../yaml/webby-pod01.yaml
error: timed out waiting for the condition on pods/webservice01
[-] Test failed
Fixed in https://github.com/alta3/kubernetes-the-alta3-way/commit/a9852c60e1ee83a211dfe28ed135dc801077f4c0 "webby to pull from correct url"
student@bchd:~/git/kubernetes-the-alta3-way$ tl create-and-configure-basic-pods
[+] Cleaning cluster
[+] Preparing create-and-configure-basic-pods
[+] Setup complete
[+] Testing create-and-configure-basic-pods
+ kubectl apply -f ../yaml/simpleservice.yaml
pod/simpleservice created
+ kubectl wait --for condition=Ready --timeout 60s -f ../yaml/simpleservice.yaml
pod/simpleservice condition met
+ kubectl apply -f ../yaml/webby-pod01.yaml
pod/webservice01 created
+ kubectl wait --for condition=Ready --timeout 60s -f ../yaml/webby-pod01.yaml
pod/webservice01 condition met
[+] Test complete
Ready for review @BicycleWalrus @sfeeser
{
tl kubectl-top
tl multi-container-pod-design
tl admission-controller
tl taints-and-tolerations
tl setting-an-applications-resource-requirements
tl fluentd
tl livenessprobes-and-readinessprobes
tl listing-resources-with-kubectl-get
tl isolating-resources-with-kubernetes-namespaces
tl horizontal-scaling-with-kubectl-scale
tl cluster-access-with-kubernetes-context
tl create-and-configure-basic-pods
tl persistent-configuration-with-configmaps
tl create-and-consume-secrets
tl init-containers
tl examining-resources-with-kubectl-describe
tl understanding-labels-and-selectors
} | tee $(date -I)_tl.log
2022-12-13_tl.log
Kubernetes v1.25: Combiner
supporting component releases