Browse Source

change config map to a git pv

replace configmap volume for new pv
master
anpham 2 weeks ago
parent
commit
c78b3ac069
1 changed files with 14 additions and 6 deletions
  1. +14
    -6
      hommer-deployment.yml

+ 14
- 6
hommer-deployment.yml View File

@ -15,19 +15,27 @@ spec:
labels:
app: hommer
spec:
volumes:
- name: git-repo-volume
emptyDir: {}
# Define init container
initContainers:
- name: git-cloner
image: alpine/git:latest
commad: ["git", "clone", ""]
volumeMounts:
- name: git-repo-volume
mountpath: /repo
containers:
- name: hommer
image: b4bz/homer:v23.09.1
volumeMounts:
- name: assets
- name: git-repo-volume
mountPath: /www/assets
ports:
- containerPort: 8080
volumes:
- name: assets
configMap:
name: homer-config
---
apiVersion: v1
kind: Service


Loading…
Cancel
Save