Comments (8)
That's not currently possible. PRs are welcome though 🙂
We could add deploy.affinity
to the values.yaml
and make it so the default value is what's currently specified in the template, e.g. values.yaml would look like:
deploy:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
clusterName: {{ include "infinispan-helm-charts.name" . }}
app: infinispan-pod
topologyKey: kubernetes.io/hostname
weight: 100
from infinispan-helm-charts.
You mean it's me need to create PR ?
About affinity, so i can add in values.yml ?
Something like this
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
clusterName: {{ include "infinispan-helm-charts.name" . }}
app: infinispan-pod
topologyKey: topology.kubernetes.io/zone
from infinispan-helm-charts.
You mean it's me need to create PR ?
The feature may get added in the future by someone else (thanks for raising the issue), but submitting a PR yourself will definitely speed things up and ensure the feature is added.
About affinity, so i can add in values.yml ?
In order for us to support this there are two changes required:
- We need to update the default
values.yaml
included with the chart to include the yaml I posted. This is to ensure that the existing behaviour doesn't changes. - The
templates/statefulset.yaml
template needs to be updated to remove the existingpodAntiAffinity
and instead include.Values.deploy.affinity
. See how thespec.nodeSelector
value is configured in this template for a similar example.
from infinispan-helm-charts.
If i right understand
in stateful.yml
instead of this
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
clusterName: {{ include "infinispan-helm-charts.name" . }}
app: infinispan-pod
topologyKey: kubernetes.io/hostname
weight: 100
add this to statefulset template
{{- if .Values.deploy.affinity }}
affinity :
{{- with .Values.deploy.affinity }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
And need to add in value.yml:
affinity: {}
from infinispan-helm-charts.
That looks correct 👍
from infinispan-helm-charts.
So should i do the PR ? for this ?
from infinispan-helm-charts.
If you're able to, it would be much appreciated!
from infinispan-helm-charts.
Hello!
I will do little later
from infinispan-helm-charts.
Related Issues (20)
- HelmChart should support encryption
- Infinispan Server failed to start org.infinispan.manager.EmbeddedCacheManagerStartupException HOT 18
- securityContext.fsGroup should not be assigned in default values
- Route/Ingress must be configured properly with TLS
- Docs for encryption should show how to use credentials store
- Helm chart encryption docs minor formatting fixes
- Add chart to Artifacthub HOT 3
- Update to Infinispan 15
- Server unable to start after pod restart with Infinispan 15
- Autoscaling support for Helm release HOT 1
- How to safely add password to security.batch HOT 2
- Error when added annotations or podLabeles HOT 16
- Add volume without using TemplateVolume HOT 4
- After Deploy infinispan don't work correcrtly HOT 26
- Console error after deploy default
- Enter to different infinispan securityRealm through UI console HOT 10
- User with role admin dont have possibility create cache HOT 23
- error on first time deploy of chart ISPN000512 Cannot acquire lock /opt/infinispan/server/data/___global.lck HOT 9
- Error Create Cache HOT 25
- Allow the user to specify container securityContext HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinispan-helm-charts.