This commit is contained in:
nutzer26
2022-12-16 12:21:57 +01:00
parent 199a7e11b5
commit 8ee05cb88d
60 changed files with 3516 additions and 2 deletions

51
git_sync/deployment Normal file
View File

@@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: git-sync
name: git-sync
spec:
replicas: 1
selector:
matchLabels:
app: git-sync
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: git-sync
spec:
containers:
- image: nginx:latest
name: nginx
resources: {}
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
initContainers:
- image: registry.k8s.io/git-sync/git-sync:v3.6.2
name: gitsync
args:
- --repo=nutzer26@1:/home/nutzer01/content_repo.git
- --root=/tmp/git/root
- --ssh
- --one-time
volumeMounts:
- name: git-secret
mountPath: /etc/git-secret
- name: workdir
mountPath: "/tmp/git/root"
securityContext:
runAsUser: 65533
volumes:
- name: workdir
emptyDir: {}
- name: claim-pvc2
secret:
secretName: git-creds
defaultMode: 0400
securityContext:
fsGroup: 65533
status: {}