O deployment de 5:05 está dando erro: error: error validating "sistema-noticias-deployment.yaml": error validating data: ValidationError(Deployment.spec.template.spec.containers[0].envFrom[0]): unknown field "name" in io.k8s.api.core.v1.EnvFromSource; if you choose to ignore these errors, turn validation off with --validate=false
apiVersion: apps/v1
kind: Deployment
metadata:
name: sistema-noticias-deployment
spec:
replicas: 1
template:
metadata:
name: sistema-noticias
labels:
app: sistema-noticias
spec:
containers:
- name: sistema-noticias-container
image: aluracursos/sistema-noticias:1
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: sistema-configmap
selector:
matchLabels:
app: sistema-noticias
Qual seria o bug? O configmap está presente:
λ kubectl.exe get configmap
NAME DATA AGE
db-configmap 4 20h
portal-configmap 1 20h
sistema-configmap 4 20h