Skip to content

Commit

Permalink
nodeAffinity for Zarf registry
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Jul 1, 2024
1 parent 52b5cd8 commit adbb270
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bundles/dev/local-path-core/uds-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ variables:
registry_hpa_enable: false
registry_pvc_size: 100Gi
registry_pvc_access_mode: ReadWriteMany
# Add for Local Path Provisioner PVC
registry_affinity_custom: |
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: Exists
storage_configuration_values_file: values/storage-configuration-values.yaml
uds-core:
loki_chunks_bucket: $LOKI_S3_BUCKET
Expand Down
9 changes: 9 additions & 0 deletions bundles/latest/local-path-core/uds-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ variables:
registry_hpa_enable: false
registry_pvc_size: 100Gi
registry_pvc_access_mode: ReadWriteMany
# Add for Local Path Provisioner PVC
registry_affinity_custom: |
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: Exists
storage_configuration_values_file: values/storage-configuration-values.yaml
uds-core:
loki_chunks_bucket: $LOKI_S3_BUCKET
Expand Down
17 changes: 17 additions & 0 deletions packages/minio/values/minio-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ resources:
persistence:
size: ###ZARF_VAR_BUCKET_PERSISTENCE_SIZE###

## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
tolerations: []

# Add for Local Path Provisioner PVC
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: Exists

topologySpreadConstraints: []

buckets:
- name: uds

Expand Down

0 comments on commit adbb270

Please sign in to comment.