forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync up with the hazelcast Helm Chart repo (helm#15948)
Signed-off-by: Rafal Leszko <rafal@hazelcast.com>
- Loading branch information
Rafał Leszko
authored and
Ram Sri
committed
Sep 30, 2019
1 parent
3e4221d
commit 8808a97
Showing
18 changed files
with
613 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{- if .Values.mancenter.ingress.enabled -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: "{{ include "mancenter.fullname" . }}" | ||
labels: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
helm.sh/chart: {{ template "hazelcast.chart" . }} | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
{{- if .Values.mancenter.ingress.annotations }} | ||
annotations: | ||
{{ toYaml .Values.mancenter.ingress.annotations | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.mancenter.ingress.tls }} | ||
tls: | ||
{{- range .Values.mancenter.ingress.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- $serviceName := include "mancenter.fullname" . -}} | ||
{{- if .Values.mancenter.ingress.hosts }} | ||
{{- range $host := .Values.mancenter.ingress.hosts }} | ||
- host: {{ $host | quote }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: {{ $serviceName }} | ||
servicePort: mancenterport | ||
{{- end }} | ||
{{- else }} | ||
- http: | ||
paths: | ||
- backend: | ||
serviceName: {{ $serviceName }} | ||
servicePort: mancenterport | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{- if and (and .Values.mancenter.enabled .Values.mancenter.persistence.enabled (not .Values.mancenter.persistence.existingClaim)) }} | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ template "mancenter.fullname" . }} | ||
labels: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
spec: | ||
accessModes: | ||
{{- range .Values.mancenter.persistence.accessModes }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.mancenter.persistence.size | quote }} | ||
{{- if .Values.mancenter.persistence.storageClass }} | ||
{{- if (eq "-" .Values.mancenter.persistence.storageClass) }} | ||
storageClassName: "" | ||
{{- else }} | ||
storageClassName: "{{ .Values.mancenter.persistence.storageClass }}" | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{- if .Values.mancenter.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "mancenter.fullname" . }} | ||
labels: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
helm.sh/chart: {{ template "hazelcast.chart" . }} | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
spec: | ||
type: {{ .Values.mancenter.service.type }} | ||
{{- if .Values.mancenter.service.clusterIP }} | ||
clusterIP: {{ .Values.mancenter.service.clusterIP }} | ||
{{- end }} | ||
selector: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
role: mancenter | ||
ports: | ||
- protocol: TCP | ||
port: {{ .Values.mancenter.service.port }} | ||
targetPort: mancenter | ||
name: mancenterport | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{{- if .Values.mancenter.enabled }} | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: {{ template "mancenter.fullname" . }} | ||
labels: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
helm.sh/chart: {{ template "hazelcast.chart" . }} | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
spec: | ||
serviceName: {{ template "mancenter.fullname" . }} | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
role: mancenter | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: {{ template "hazelcast.name" . }} | ||
helm.sh/chart: {{ template "hazelcast.chart" . }} | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/managed-by: "{{ .Release.Service }}" | ||
role: mancenter | ||
spec: | ||
{{- if .Values.mancenter.image.pullSecrets }} | ||
imagePullSecrets: | ||
{{- range .Values.mancenter.image.pullSecrets }} | ||
- name: {{ . }} | ||
{{- end}} | ||
{{- end}} | ||
{{- if .Values.mancenter.nodeSelector }} | ||
nodeSelector: | ||
{{ toYaml .Values.mancenter.nodeSelector | indent 8 }} | ||
{{- end }} | ||
hostNetwork: false | ||
hostPID: false | ||
hostIPC: false | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: {{ .Values.securityContext.runAsUser }} | ||
fsGroup: {{ .Values.securityContext.fsGroup }} | ||
containers: | ||
- name: {{ template "mancenter.fullname" . }} | ||
image: "{{ .Values.mancenter.image.repository }}:{{ .Values.mancenter.image.tag }}" | ||
imagePullPolicy: {{ .Values.mancenter.image.pullPolicy | quote }} | ||
resources: | ||
{{ toYaml .Values.mancenter.resources | indent 10 }} | ||
ports: | ||
- name: mancenter | ||
containerPort: 8080 | ||
{{- if .Values.mancenter.livenessProbe.enabled }} | ||
livenessProbe: | ||
httpGet: | ||
path: /hazelcast-mancenter/health | ||
port: 8080 | ||
initialDelaySeconds: {{ .Values.mancenter.livenessProbe.initialDelaySeconds }} | ||
periodSeconds: {{ .Values.mancenter.livenessProbe.periodSeconds }} | ||
timeoutSeconds: {{ .Values.mancenter.livenessProbe.timeoutSeconds }} | ||
successThreshold: {{ .Values.mancenter.livenessProbe.successThreshold }} | ||
failureThreshold: {{ .Values.mancenter.livenessProbe.failureThreshold }} | ||
{{- end }} | ||
{{- if .Values.mancenter.readinessProbe.enabled }} | ||
readinessProbe: | ||
httpGet: | ||
path: /hazelcast-mancenter/health | ||
port: 8080 | ||
initialDelaySeconds: {{ .Values.mancenter.readinessProbe.initialDelaySeconds }} | ||
periodSeconds: {{ .Values.mancenter.readinessProbe.periodSeconds }} | ||
timeoutSeconds: {{ .Values.mancenter.readinessProbe.timeoutSeconds }} | ||
successThreshold: {{ .Values.mancenter.readinessProbe.successThreshold }} | ||
failureThreshold: {{ .Values.mancenter.readinessProbe.failureThreshold }} | ||
{{- end }} | ||
volumeMounts: | ||
- name: mancenter-storage | ||
mountPath: /data | ||
env: | ||
- name: MC_LICENSE_KEY | ||
{{- if .Values.mancenter.licenseKeySecretName }} | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.mancenter.licenseKeySecretName }} | ||
key: key | ||
{{- else }} | ||
value: {{ .Values.mancenter.licenseKey }} | ||
{{- end }} | ||
- name: JAVA_OPTS | ||
value: "{{ if or .Values.mancenter.licenseKey .Values.mancenter.licenseKeySecretName }}-Dhazelcast.mc.license=$(MC_LICENSE_KEY){{ end }} {{ .Values.mancenter.javaOpts }}" | ||
serviceAccountName: {{ template "hazelcast.serviceAccountName" . }} | ||
{{- if .Values.securityContext.enabled }} | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: {{ .Values.securityContext.runAsUser }} | ||
privileged: false | ||
readOnlyRootFilesystem: false | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
{{- end }} | ||
{{- if .Values.securityContext.enabled }} | ||
securityContext: | ||
fsGroup: {{ .Values.securityContext.fsGroup }} | ||
{{- end }} | ||
serviceAccountName: {{ template "hazelcast.serviceAccountName" . }} | ||
volumes: | ||
- name: mancenter-storage | ||
{{- if .Values.mancenter.persistence.enabled }} | ||
persistentVolumeClaim: | ||
claimName: {{ .Values.mancenter.persistence.existingClaim | default (include "mancenter.fullname" .) }} | ||
{{- else }} | ||
emptyDir: {} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.