-
Notifications
You must be signed in to change notification settings - Fork 0
Support K8s Pod affinity configuration for Pod scheduling #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: postgresql-operator | ||
| spec: | ||
| template: | ||
| spec: | ||
| affinity: {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,12 @@ quarkus: | |
| value: ${quarkus.kubernetes.image-pull-secrets[0]} | ||
| paths: | ||
| - (kind == Deployment).spec.template.spec.imagePullSecrets[0].name | ||
| description: Kubernetes image pull secret to use if the OCI image is hosted on a private registry | ||
| affinity: | ||
| property: affinity | ||
| value-as-map: {} | ||
| path: (kind == Deployment).spec.template.spec.affinity | ||
| description: Kubernetes affinity configuration for Pod scheduling | ||
| expressions: | ||
| release-name-labels: | ||
| expression: "{{ .Release.Name }}" | ||
|
|
@@ -116,6 +122,9 @@ quarkus: | |
| release-name-deployment-labels: | ||
| expression: "{{ .Release.Name }}" | ||
| path: (kind == Deployment).spec.template.metadata.labels.'app.kubernetes.io/name' | ||
| affinity: | ||
| expression: "{{- toYaml (.Values.app.affinity | default dict) | nindent 8 }}" | ||
| path: (kind == Deployment).spec.template.spec.affinity | ||
|
Comment on lines
+125
to
+127
|
||
| kubernetes: | ||
| name: postgresql-operator | ||
| version: ${quarkus.application.version} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.