busybox
Less than 1 minute
busybox
prepare
- k8s is ready
installation
- prepare
busybox.yaml
- fedora
apiVersion: apps/v1 kind: Deployment metadata: name: fedora labels: app: fedora spec: replicas: 1 selector: matchLabels: app: fedora template: metadata: labels: app: fedora spec: containers: - name: fedora image: docker.io/library/fedora:38 command: - tail - -f - /etc/hosts imagePullPolicy: IfNotPresent
busyboxapiVersion: apps/v1 kind: Deployment metadata: name: busybox labels: app: busybox spec: replicas: 1 selector: matchLabels: app: busybox template: metadata: labels: app: busybox spec: containers: - name: busybox image: docker.io/library/busybox:1.36.1-glibc command: - tail - -f - /etc/hosts imagePullPolicy: IfNotPresent
- apply to k8s
kubectl apply -f busybox.yaml
- exec
- fedora
kubectl exec -it deployment/busybox -- sh
busyboxkubectl exec -it deployment/busybox -- sh
- use wget to test http service
wget -q -O - https://minio-console.storage:9001