我的本地私有镜像是jrei/systemd-ubuntu:20.04,可以使用systemctl工具。
但kubernetes pod拉取之后,进入pod中的容器,发现系统是ubuntu:20.04,systemctl工具失效了。
我的pod yaml如下:
apiVersion: v1
kind: Pod
metadata:
name: test0
spec:
containers:
- name: test0
image: xx.xx.xx.xx:8000/myimage:v1
imagePullPolicy: IfNotPresent
command: ["/bin/bash"]
args: ["-c", "sleep 60000"]
imagePullSecrets:
- name: myregistrykey
我想请问,这种情况是为什么?如何修改?