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: labels:
app: hommer app: hommer
spec: 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: containers:
- name: hommer - name: hommer
image: b4bz/homer:v23.09.1 image: b4bz/homer:v23.09.1
volumeMounts: volumeMounts:
- name: assets
- name: git-repo-volume
mountPath: /www/assets mountPath: /www/assets
ports: ports:
- containerPort: 8080 - containerPort: 8080
volumes:
- name: assets
configMap:
name: homer-config
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service


Loading…
Cancel
Save