Skip to content

Commit 56770d2

Browse files
committed
examples: images add docker.io/ prefix
Starting in Kubernetes 1.34 (when using cri-o), the short form is no longer supported. To ensure maximum compatibility, the referenced image names have been adjusted in our examples.
1 parent 74832ba commit 56770d2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

examples/dns-dual-protocol.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ spec:
5151
spec:
5252
containers:
5353
- name: coredns
54-
image: coredns/coredns:1.11.1
54+
image: docker.io/coredns/coredns:1.11.1
5555
args:
5656
- -conf
5757
- /etc/coredns/Corefile

examples/external-traffic-policy-local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
spec:
4242
containers:
4343
- name: hello
44-
image: nginxdemos/hello:plain-text
44+
image: docker.io/nginxdemos/hello:plain-text
4545
---
4646
apiVersion: v1
4747
kind: Service

examples/ingress.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Deploys two nginxdemos/hello:plain-text containers ("blue" and "red")
1+
# Deploys two docker.io/nginxdemos/hello:plain-text containers ("blue" and "red")
22
# and creates ClusterIP services named "blue-svc" and "red-svc" for the
33
# deployments. Additionally, an Ingress resource named "simple" is set
44
# up to route requests for "/red" to "red-svc" service and
@@ -37,7 +37,7 @@ spec:
3737
app: blue
3838
spec:
3939
containers:
40-
- image: nginxdemos/hello:plain-text
40+
- image: docker.io/nginxdemos/hello:plain-text
4141
name: hello
4242
---
4343
apiVersion: v1
@@ -71,7 +71,7 @@ spec:
7171
app: red
7272
spec:
7373
containers:
74-
- image: nginxdemos/hello:plain-text
74+
- image: docker.io/nginxdemos/hello:plain-text
7575
name: hello
7676
resources: { }
7777
---

examples/nginx-hello.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Deploys the nginxdemos/hello:plain-text container and creates a
1+
# Deploys the docker.io/nginxdemos/hello:plain-text container and creates a
22
# loadbalancer service for it:
33
#
44
# export KUBECONFIG=path/to/kubeconfig
@@ -34,7 +34,7 @@ spec:
3434
spec:
3535
containers:
3636
- name: hello
37-
image: nginxdemos/hello:plain-text
37+
image: docker.io/nginxdemos/hello:plain-text
3838
---
3939
apiVersion: v1
4040
kind: Service

examples/proxy-v2-protocol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
spec:
4141
containers:
4242
- name: proxy-hello
43-
image: nginxdemos/hello:plain-text
43+
image: docker.io/nginxdemos/hello:plain-text
4444
volumeMounts:
4545
- name: nginx-config-volume
4646
mountPath: /etc/nginx/nginx.conf

0 commit comments

Comments
 (0)