~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes $ minikube start
😄 minikube v1.38.1 on Ubuntu 22.04 (kvm/amd64)
✨ Using the docker driver based on existing profile
👍 Starting "minikube" primary control-plane node in "minikube" cluster
🚜 Pulling base image v0.0.50 ...
🔄 Restarting existing docker container for "minikube" ...
🐳 Preparing Kubernetes v1.35.1 on Docker 29.2.1 ...
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: storage-provisioner, default-storageclass
💡 kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes $ minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes $ miku apply -f 15_DandK/step07/manifest/nginx-pod.yml
pod/nginx created
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes $ miku get all
NAME READY STATUS RESTARTS AGE
pod/nginx 1/1 Running 0 6s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 27h
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes $ miku get po nginx -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
nginx 1/1 Running 0 62s 10.244.0.24 minikube <none> <none>
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes $ miku run busybox --image=busybox --restart=Never --rm -it sh
All commands and output from this session will be recorded in container logs, including credentials and sensitive information passed through the command prompt.
If you don't see a command prompt, try pressing enter.
/ #
/ # wget -q -O - http://10.244.0.24/
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, nginx is successfully installed and working.
Further configuration is required for the web server, reverse proxy,
API gateway, load balancer, content cache, or other features.</p>
<p>For online documentation and support please refer to
<a href="https://nginx.org/">nginx.org</a>.<br/>
To engage with the community please visit
<a href="https://community.nginx.org/">community.nginx.org</a>.<br/>
For enterprise grade support, professional services, additional
security features and capabilities please refer to
<a href="https://f5.com/nginx">f5.com/nginx</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/hc-probe/webapl $ docker build -t maho/webapl:0.1 .
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/hc-probe/webapl $ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
maho/webapl 0.1 a302857306f2 9 seconds ago 98.8MB
gcr.io/k8s-minikube/kicbase v0.0.50 6da180ef5035 4 weeks ago 1.37GB
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/hc-probe $ miku apply -f webapl-pod.yml
pod/webapl created
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/hc-probe $ miku get all
NAME READY STATUS RESTARTS AGE
pod/webapl 0/1 ContainerCreating 0 5s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 27h
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/init-container $ miku apply -f init-sample.yml
pod/init-sample created
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/init-container $ miku get po
NAME READY STATUS RESTARTS AGE
init-sample 0/1 Init:0/1 0 6s
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/init-container $ miku get po
NAME READY STATUS RESTARTS AGE
init-sample 1/1 Running 0 12s
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/init-container $ miku logs init-sample
Defaulted container "main" out of: main, init (init)
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/sidecar $ docker build -t maho/c-cloner:0.1 .
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/sidecar $ miku apply -f webserver.yml
pod/webserver created
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/sidecar $ miku get po
NAME READY STATUS RESTARTS AGE
webserver 0/2 ContainerCreating 0 5s
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/sidecar $ miku logs webserver
Defaulted container "nginx" out of: nginx, cloner
Error from server (BadRequest): container "nginx" in pod "webserver" is waiting to start: ContainerCreating
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/sidecar $ miku get po
NAME READY STATUS RESTARTS AGE
webserver 2/2 Running 0 23s
~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step07/sidecar $ miku delete po webserver
pod "webserver" deleted from default namespace