-
My goal is to read/write the image in the following k8s YAML kind: Deployment
apiVersion: apps/v1
metadata:
namespace: default
name: whoami
labels:
app: whoami
spec:
replicas: 1
selector:
matchLabels:
app: whoami
template:
metadata:
labels:
app: whoami
spec:
containers:
- name: whoami-container
image: containous/whoami
ports:
- name: web
containerPort: 80 It worked in v3 with:
But I can't get it to work in v4:
|
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Mar 24, 2021
Replies: 1 comment
-
You just need to splat the containers array before selecting:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mikefarah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You just need to splat the containers array before selecting: