Skip to content

Commit

Permalink
Update some images in examples
Browse files Browse the repository at this point in the history
Use artifact registry url for gb-frontend instead of gcr as images in gcr are not tagged anymore
Use registry.k8s.io instead of k8s.gcr.io

Signed-off-by: Praveen Rewar <[email protected]>
  • Loading branch information
praveenrewar committed Dec 18, 2023
1 parent 75e9565 commit 5c8447a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions examples/gitops/guestbook/all-in-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
spec:
containers:
- name: primary
image: k8s.gcr.io/redis:e2e #! or just image: redis
image: registry.k8s.io/redis:e2e #! or just image: redis
resources:
requests:
cpu: 120m
Expand Down Expand Up @@ -140,7 +140,7 @@ spec:
spec:
containers:
- name: php-redis
image: gcr.io/google-samples/gb-frontend:v4
image: us-docker.pkg.dev/google-samples/containers/gke/gb-frontend:v5
resources:
requests:
cpu: 100m
Expand Down
40 changes: 20 additions & 20 deletions examples/gitops/redis-with-configmap/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ metadata:
kapp.k14s.io/update-strategy: fallback-on-replace
spec:
containers:
- name: redis
image: k8s.gcr.io/redis:e2e
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
volumeMounts:
- mountPath: /redis-data
name: data
- mountPath: /redis-config
name: config
- name: redis
image: registry.k8s.io/redis:e2e
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
volumeMounts:
- mountPath: /redis-data
name: data
- mountPath: /redis-config
name: config
volumes:
- name: data
emptyDir: {}
- name: config
configMap:
name: redis-config
items:
- key: redis-config
path: redis.conf
- name: data
emptyDir: {}
- name: config
configMap:
name: redis-config
items:
- key: redis-config
path: redis.conf
52 changes: 26 additions & 26 deletions examples/sts-alternative/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ kind: Service
metadata:
name: #@ data.values.name
spec:
selector:
selector:
redis: ""
ports:
- port: 6379
- port: 6379
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -23,6 +23,7 @@ data:
maxmemory 4mb
maxmemory-policy allkeys-lru
#@ def idx_name(idx): return data.values.name+"-"+str(idx)

#@ for idx in range(0, data.values.replicas):
Expand All @@ -44,28 +45,28 @@ metadata:
(@= curr_idx_name @): ""
spec:
containers:
- name: redis
image: k8s.gcr.io/redis:e2e
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
volumeMounts:
- mountPath: /redis-data
name: data
- mountPath: /redis-config
name: config
- name: redis
image: registry.k8s.io/redis:e2e
ports:
- containerPort: 6379
resources:
limits:
cpu: 100m
volumeMounts:
- mountPath: /redis-data
name: data
- mountPath: /redis-config
name: config
volumes:
- name: data
persistentVolumeClaim:
claimName: #@ curr_idx_name
- name: config
configMap:
name: #@ cfg_name
items:
- key: redis-config
path: redis.conf
- name: data
persistentVolumeClaim:
claimName: #@ curr_idx_name
- name: config
configMap:
name: #@ cfg_name
items:
- key: redis-config
path: redis.conf
---
apiVersion: v1
kind: PersistentVolumeClaim
Expand All @@ -85,11 +86,10 @@ kind: Service
metadata:
name: #@ curr_idx_name
spec:
selector:
selector:
redis: ""
#@yaml/text-templated-strings
(@= curr_idx_name @): ""
ports:
- port: 6379

- port: 6379
#@ end

0 comments on commit 5c8447a

Please sign in to comment.