Skip to content

Commit

Permalink
🚀 K8s will first try to use the local image, if it doesn't exist, it …
Browse files Browse the repository at this point in the history
…will pull the image from the dummy Docker registry.
  • Loading branch information
agn-7 committed Sep 9, 2023
1 parent 8519f04 commit 6c83ce3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion k8s/config-map/timezone-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ kind: ConfigMap
metadata:
name: timezone-config
data:
TZ: "UTC"
timezone: |-
UTC
5 changes: 4 additions & 1 deletion k8s/deployment/bitpin-app-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ spec:
spec:
containers:
- name: bitpin-app
image: bitpin:1.0.0
image: localhost:5000/bitpin:1.0.0
imagePullPolicy: IfNotPresent
command: ["bash", "start.sh"]
ports:
- containerPort: 8000
Expand All @@ -28,9 +29,11 @@ spec:
mountPath: /code/static
- name: timezone-volume
mountPath: /etc/timezone
subPath: timezone
readOnly: true
- name: localtime-volume
mountPath: /etc/localtime
subPath: localtime
readOnly: true
volumes:
- name: media-volume
Expand Down

0 comments on commit 6c83ce3

Please sign in to comment.