Olá, estou tentando subir de deployment com uma imagem do php, mas sempre da erro, segue resultado do kubectl describe pods
:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m43s default-scheduler Successfully assigned default/back-crud-deploy-5544b5b7cc-2cmwb to minikube
Normal Pulling 3m42s kubelet Pulling image "php:7.4-cli"
Normal Pulled 24s kubelet Successfully pulled image "php:7.4-cli" in 3m18.17806603s
Normal Created 8s (x3 over 24s) kubelet Created container back-crud-container
Normal Started 8s (x3 over 24s) kubelet Started container back-crud-container
Normal Pulled 8s (x2 over 23s) kubelet Container image "php:7.4-cli" already present on machine
Warning BackOff 8s (x3 over 22s) kubelet Back-off restarting failed container
Segue deployment.yml:
apiVersion: apps/v1
kind: Deployment
metadata:
name: back-crud-deploy
spec:
replicas: 1
selector:
matchLabels:
app: back-crud
template:
metadata:
name: back-crud
labels:
app: back-crud
spec:
containers:
- name: back-crud-container
image: php:7.4-cli
ports:
- containerPort: 80