Add affinity to wildfly

This commit is contained in:
Carlos Rodriguez Hernandez
2019-09-04 13:36:49 +00:00
parent c7f1e41753
commit 8ec31ca39b
4 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: wildfly
version: 3.2.4
version: 3.2.5
appVersion: 17.0.1
description: Chart for Wildfly
keywords:
+1
View File
@@ -82,6 +82,7 @@ The following tables lists the configurable parameters of the WildFly chart and
| `persistence.accessMode` | PVC Access Mode for WildFly volume | `ReadWriteOnce` |
| `persistence.size` | PVC Storage Request for WildFly volume | `8Gi` |
| `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` |
| `affinity` | Map of node/pod affinities | `{}` |
The above parameters map to the env variables defined in [bitnami/wildfly](http://github.com/bitnami/bitnami-docker-wildfly). For more information please refer to the [bitnami/wildfly](http://github.com/bitnami/bitnami-docker-wildfly) image documentation.
@@ -82,3 +82,7 @@ spec:
{{- else }}
emptyDir: {}
{{- end -}}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
+5
View File
@@ -117,3 +117,8 @@ resources:
requests:
memory: 512Mi
cpu: 300m
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}