2020-01-06 09:18:25 +00:00
|
|
|
---
|
2019-03-07 17:02:43 +00:00
|
|
|
# use this pod with: kubectl run ubuntu -it --pid=host -- /bin/bash
|
|
|
|
# this allows you to debug what is running on the host.
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: ubuntu
|
|
|
|
spec:
|
|
|
|
hostPID: true
|
|
|
|
containers:
|
2020-01-06 09:18:25 +00:00
|
|
|
- name: ubuntu
|
|
|
|
image: ubuntu
|
|
|
|
command: ["/bin/bash", "-c", "--"]
|
|
|
|
args: ["while true; do sleep 30; done;"]
|
|
|
|
volumeMounts:
|
|
|
|
- name: var-lib-kubelet
|
|
|
|
mountPath: /var/lib/kubelet
|
|
|
|
- name: etc-systemd
|
|
|
|
mountPath: /etc/systemd
|
|
|
|
- name: etc-kubernetes
|
|
|
|
mountPath: /etc/kubernetes
|
|
|
|
# /usr/bin is mounted to access kubectl / kubelet, for auto-detecting the Kubernetes version.
|
|
|
|
# You can omit this mount if you specify --version as part of the command.
|
|
|
|
- name: usr-bin
|
|
|
|
mountPath: /usr/bin
|
|
|
|
- name: kind-bin
|
|
|
|
mountPath: /kind/bin
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: "128Mi"
|
|
|
|
cpu: "500m"
|
|
|
|
volumes:
|
2019-03-07 17:02:43 +00:00
|
|
|
- name: var-lib-kubelet
|
2020-01-06 09:18:25 +00:00
|
|
|
hostPath:
|
|
|
|
path: "/var/lib/kubelet"
|
2019-03-07 17:02:43 +00:00
|
|
|
- name: etc-systemd
|
2020-01-06 09:18:25 +00:00
|
|
|
hostPath:
|
|
|
|
path: "/etc/systemd"
|
2019-03-07 17:02:43 +00:00
|
|
|
- name: etc-kubernetes
|
2020-01-06 09:18:25 +00:00
|
|
|
hostPath:
|
|
|
|
path: "/etc/kubernetes"
|
2019-03-07 17:02:43 +00:00
|
|
|
- name: usr-bin
|
2020-01-06 09:18:25 +00:00
|
|
|
hostPath:
|
|
|
|
path: "/usr/bin"
|
2019-03-07 17:02:43 +00:00
|
|
|
- name: kind-bin
|
2020-01-06 09:18:25 +00:00
|
|
|
hostPath:
|
|
|
|
path: "/kind/bin"
|