Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions apps/grep/base/cronjob.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions apps/grep/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ spec:
- name: gitrepo
mountPath: /shared/metacpan_git
readOnly: false
- name: repo-refresh
image: bitnami/git:latest
command:
- sh
- -c
- |-
[ -f /shared/metacpan_git/.init_complete ] \
&& cd /shared/metacpan_git \
&& while true; do
git fetch origin && git reset --hard origin/master
sleep 15m
done
imagePullPolicy: IfNotPresent
volumeMounts:
- name: gitrepo
mountPath: /shared/metacpan_git
volumes:
- name: gitrepo
persistentVolumeClaim:
Expand Down
1 change: 0 additions & 1 deletion apps/grep/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./configmap.yaml
- ./cronjob.yaml
- ./deployment.yaml
- ./pvc.yaml
- ./service.yaml
4 changes: 2 additions & 2 deletions apps/grep/base/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: gitrepo
spec:
accessModes:
- ReadWriteMany
storageClassName: nfs-volatile
- ReadWriteOnce
storageClassName: do-block-storage
resources:
requests:
storage: 35Gi