O recurso deployment teve alteração e pra quem estiver usando a parti da versão 1.17 do kubernetes, segue a o yaml da aula
apiVersion: apps/v1
kind: Deployment
metadata:
name: esp-airportnames
labels:
app: esp-airportnames
spec:
replicas: 1
selector:
matchLabels:
app: esp-airportnames
template:
metadata:
labels:
app: esp-airportnames
spec:
containers:
# [START esp]
- name: esp
image: gcr.io/endpoints-release/endpoints-runtime:1
args: [
"--http_port=8081",
"--backend=127.0.0.1:8080",
"--service=airport.endpoints.kubernetes-poc-338418.cloud.goog",
"--rollout_strategy=managed",
]
# [END esp]
ports:
- containerPort: 8081
- name: airportnames
image: registry.hub.docker.com/rmerces/airportnames
ports:
- containerPort: 8080