-
Notifications
You must be signed in to change notification settings - Fork 160
Add: Pod affinity #189
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
base: main
Are you sure you want to change the base?
Add: Pod affinity #189
Changes from all commits
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 |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ spec: | |
| spec: | ||
| template: | ||
| spec: | ||
| affinity: {{- toYaml .Values.cronJob.affinity | nindent 12 }} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see that affinity was added to myapp deployment and it was correctly templated and added to values.yaml. But why manifests without affinity in soruce were templated? |
||
| containers: | ||
| - command: | ||
| - /bin/sh | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ spec: | |
| name: fluentd-elasticsearch | ||
| {{- include "app.selectorLabels" . | nindent 8 }} | ||
| spec: | ||
| affinity: {{- toYaml .Values.fluentdElasticsearch.affinity | nindent 8 }} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see that affinity was added to myapp deployment and it was correctly templated and added to values.yaml. But why manifests without affinity in soruce were templated? |
||
| containers: | ||
| - env: | ||
| - name: KUBERNETES_CLUSTER_DOMAIN | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ spec: | |
| labels: | ||
| app: nginx | ||
| spec: | ||
| affinity: {{- toYaml .Values.web.affinity | nindent 8 }} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see that affinity was added to myapp deployment and it was correctly templated and added to values.yaml. But why manifests without affinity in soruce were templated? |
||
| containers: | ||
| - env: | ||
| - name: KUBERNETES_CLUSTER_DOMAIN | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see that affinity was added to myapp deployment and it was correctly templated and added to values.yaml. But why manifests without affinity in soruce were templated?