I faced similar issue. Just verify if your container is able to run continuously. You have to run the process in foreground to keep container running.
ๆๅจ่ฏๅพๅจ k8s ไธญ่ฟ่ก ubuntu pod ๆถ๏ผไน้ๅฐ่ฟไธช้ฎ้ข๏ผๆทปๅ command, ไฝฟ็จ sleep ไปฃๆฟ image ไธญ็็ผบ็่ฎพ็ฝฎ bash ๅฐฑๅฅฝไบ
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: ubuntu
name: ubuntu
spec:
replicas: 1
selector:
matchLabels:
app: ubuntu
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: ubuntu
spec:
containers:
- image: ubuntu
name: ubuntu
command:
- sleep
args:
- infinity
resources: {}
status: {}
Top comments (0)