Skip to content
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

Add helm chart for wire-server-enterprise #4359

Merged
merged 7 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/wire-server-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
description: additional enterprise features for wire-server
name: wire-server-enterprise
version: 0.0.42
20 changes: 20 additions & 0 deletions charts/wire-server-enterprise/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: wire-server-enterprise
labels:
app: wire-server-enterprise
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{- with .Values.config }}
wire-server-enterprise.yaml: |
logNetStrings: {{ .logNetStrings }}
logFormat: {{ .logFormat }}
logLevel: {{ .logLevel }}

wireServerEnterprise:
host: 0.0.0.0
port: 8080
{{- end }}
55 changes: 55 additions & 0 deletions charts/wire-server-enterprise/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: wire-server-enterprise
labels:
app: wire-server-enterprise
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: {{ .Values.replicaCount }}
selector:
matchLabels:
app: wire-server-enterprise
template:
metadata:
labels:
app: wire-server-enterprise
release: {{ .Release.Name }}
annotations:
# An annotation of the configmap checksum ensures changes to the configmap cause a redeployment upon `helm upgrade`
checksum/configmap: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
imagePullSecrets:
- name: wire-server-enterprise-readonly-pull-secret
volumes:
- name: "wire-server-enterprise-config"
configMap:
name: "wire-server-enterprise"
containers:
Fixed Show fixed Hide fixed
- name: wire-server-enterprise
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
ports:
- containerPort: {{ .Values.service.internalPort }}
livenessProbe:
httpGet:
scheme: HTTP
path: /i/status
port: {{ .Values.service.internalPort }}
readinessProbe:
httpGet:
scheme: HTTP
path: /i/status
port: {{ .Values.service.internalPort }}
resources:
{{ toYaml .Values.resources | indent 12 }}
volumeMounts:
- name: "wire-server-enterprise-config"
mountPath: "/etc/wire/wire-server-enterprise/conf"
16 changes: 16 additions & 0 deletions charts/wire-server-enterprise/templates/image-pull-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Secret
metadata:
name: wire-server-enterprise-readonly-pull-secret
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
type: kubernetes.io/dockerconfigjson
data:
{{/* for_helm_linting is necessary only since the 'with' block below does not throw an error upon an empty .Values.secrets */}}
for_helm_linting: {{ required "No .secrets found in configuration." .Values.secrets | quote | b64enc | quote }}

{{- with .Values.secrets }}
.dockerconfigjson: {{ .configJson }}
{{- end }}
19 changes: 19 additions & 0 deletions charts/wire-server-enterprise/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: wire-server-enterprise
labels:
app: wire-server-enterprise
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
endpoints:
- port: http
path: /i/metrics
selector:
matchLabels:
app: wire-server-enterprise
release: {{ .Release.Name }}
{{- end }}
24 changes: 24 additions & 0 deletions charts/wire-server-enterprise/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
replicaCount: 1

image:
repository: quay.io/wire/wire-server-enterprise
tag: do-not-use

resources:
requests:
memory: "200Mi"
cpu: "100m"
limits:
memory: "512Mi"

service:
internalPort: 8080

metrics:
serviceMonitor:
enabled: false

config:
logLevel: Info
logFormat: StructuredJSON
logNetStrings: false
Loading