-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to using local persistent volume:
This allows deployment to reference only a PVC. If a user wants a production grade experience they should provide a PVC backed by a production grade PV. What used to be a Kubernetes Job to download HookOS, is now a container in the tink-stack pod. This removes the challenges of getting a Kubernetes Job to download HookOS on the same node as the tink-stack pod. This is only an issue with the local persistent volume. Signed-off-by: Jacob Weinstock <[email protected]>
- Loading branch information
1 parent
92a8f82
commit 1d10f18
Showing
4 changed files
with
68 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,52 @@ | ||
{{- if and .Values.stack.hook.enabled (not .Values.stack.hook.persistence.pvc.existingClaim) (eq .Values.stack.hook.persistence.type "pvc") }} | ||
{{- if and .Values.stack.hook.enabled (empty .Values.stack.hook.persistence.existingClaim ) }} | ||
--- | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: {{ .Values.stack.hook.persistence.localPersistentVolume.storageClassName }} | ||
namespace: {{ .Release.Namespace }} | ||
provisioner: kubernetes.io/no-provisioner | ||
volumeBindingMode: WaitForFirstConsumer | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: {{ .Values.stack.hook.persistence.localPersistentVolume.name }} | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
capacity: | ||
storage: {{ .Values.stack.hook.persistence.localPersistentVolume.size }} | ||
accessModes: | ||
{{- range .Values.stack.hook.persistence.localPersistentVolume.accessModes }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
persistentVolumeReclaimPolicy: Retain | ||
storageClassName: {{ .Values.stack.hook.persistence.localPersistentVolume.storageClassName }} | ||
local: | ||
path: {{ .Values.stack.hook.persistence.localPersistentVolume.path }} | ||
nodeAffinity: | ||
required: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: non-existent-label # this label with DoesNotExist should match all nodes | ||
operator: DoesNotExist | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: hook-artifacts | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- with .Values.stack.hook.persistence.pvc.extraLabels }} | ||
{{- with .Values.stack.hook.persistence.localPersistentVolume.extraLabels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.stack.hook.persistence.pvc.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
accessModes: | ||
{{- range .Values.stack.hook.persistence.pvc.accessModes }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
{{- range .Values.stack.hook.persistence.localPersistentVolume.accessModes }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.stack.hook.persistence.pvc.size | quote }} | ||
{{- with .Values.stack.hook.persistence.pvc.storageClassName }} | ||
storageClassName: {{ . }} | ||
{{- end }} | ||
{{- with .Values.stack.hook.persistence.pvc.selector }} | ||
selector: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
storage: {{ .Values.stack.hook.persistence.localPersistentVolume.size | quote }} | ||
storageClassName: {{ .Values.stack.hook.persistence.localPersistentVolume.storageClassName }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters