update mastodon helm chart for v3.4.1
This commit is contained in:
parent
493f53ebd7
commit
3831aa6cb6
@ -15,23 +15,23 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.3
|
version: 0.2.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
appVersion: 3.3.0
|
appVersion: 3.4.1
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
version: "14.2.1"
|
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 15.10.3
|
||||||
condition: elasticsearch.enabled
|
condition: elasticsearch.enabled
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: "10.2.7"
|
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 10.9.1
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
- name: redis
|
- name: redis
|
||||||
version: "12.7.2"
|
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
version: 14.8.8
|
||||||
condition: redis.enabled
|
condition: redis.enabled
|
||||||
|
@ -3,12 +3,9 @@
|
|||||||
This is a [Helm](https://helm.sh/) chart for installing Mastodon into a
|
This is a [Helm](https://helm.sh/) chart for installing Mastodon into a
|
||||||
Kubernetes cluster. The basic usage is:
|
Kubernetes cluster. The basic usage is:
|
||||||
|
|
||||||
```
|
1. edit `values.yaml` or create a separate yaml file for custom values
|
||||||
cp values.yaml.template values.yaml
|
1. `helm dep update`
|
||||||
edit values.yaml # configure required settings
|
1. `helm install --namespace mastodon --create-namespace my-mastodon ./ -f path/to/additional/values.yaml`
|
||||||
helm dep update
|
|
||||||
helm upgrade --install my-mastodon ./
|
|
||||||
```
|
|
||||||
|
|
||||||
This chart has been tested on Helm 3.0.1 and above.
|
This chart has been tested on Helm 3.0.1 and above.
|
||||||
|
|
||||||
@ -16,21 +13,17 @@ This chart has been tested on Helm 3.0.1 and above.
|
|||||||
|
|
||||||
The variables that _must_ be configured are:
|
The variables that _must_ be configured are:
|
||||||
|
|
||||||
- `ingress.hostname`; even if you aren’t using an Ingress, this value is used to
|
- password and keys in the `mastodon.secrets`, `postgresql`, and `redis` groups; if
|
||||||
set `LOCAL_DOMAIN`.
|
|
||||||
|
|
||||||
- password and keys in the `secrets`, `postgresql`, and `redis` groups; if
|
|
||||||
left blank, some of those values will be autogenerated, but will not persist
|
left blank, some of those values will be autogenerated, but will not persist
|
||||||
across upgrades.
|
across upgrades.
|
||||||
|
|
||||||
- SMTP settings for your mailer in the `smtp` group.
|
- SMTP settings for your mailer in the `mastodon.smtp` group.
|
||||||
|
|
||||||
# Missing features
|
# Missing features
|
||||||
|
|
||||||
Currently this chart does _not_ support:
|
Currently this chart does _not_ support:
|
||||||
|
|
||||||
- Hidden services
|
- Hidden services
|
||||||
- S3/Minio/GCS
|
|
||||||
- Single Sign-On
|
- Single Sign-On
|
||||||
- Swift
|
- Swift
|
||||||
- configurations using `WEB_DOMAIN`
|
- configurations using `WEB_DOMAIN`
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{- if .Values.ingress.enabled }}
|
{{- if .Values.ingress.enabled }}
|
||||||
{{- range $host := .Values.ingress.hosts }}
|
{{- range $host := .Values.ingress.hosts }}
|
||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
|
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else if contains "NodePort" .Values.service.type }}
|
{{- else if contains "NodePort" .Values.service.type }}
|
||||||
@ -16,6 +16,7 @@
|
|||||||
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
||||||
{{- else if contains "ClusterIP" .Values.service.type }}
|
{{- else if contains "ClusterIP" .Values.service.type }}
|
||||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "mastodon.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "mastodon.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
||||||
|
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
|
||||||
echo "Visit http://127.0.0.1:8080 to use your application"
|
echo "Visit http://127.0.0.1:8080 to use your application"
|
||||||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
|
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -8,62 +8,72 @@ data:
|
|||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
DB_HOST: {{ template "mastodon.postgresql.fullname" . }}
|
DB_HOST: {{ template "mastodon.postgresql.fullname" . }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
DB_HOST: {{ .Values.postgresql.postgresqlHost }}
|
DB_HOST: {{ .Values.postgresql.postgresqlHostname }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
DB_NAME: {{ .Values.postgresql.postgresqlDatabase }}
|
DB_NAME: {{ .Values.postgresql.postgresqlDatabase }}
|
||||||
DB_POOL: {{ .Values.application.sidekiq.concurrency | quote }}
|
DB_POOL: {{ .Values.mastodon.sidekiq.concurrency | quote }}
|
||||||
DB_PORT: "5432"
|
DB_PORT: "5432"
|
||||||
DB_USER: {{ .Values.postgresql.postgresqlUsername }}
|
DB_USER: {{ .Values.postgresql.postgresqlUsername }}
|
||||||
DEFAULT_LOCALE: {{ .Values.locale }}
|
DEFAULT_LOCALE: {{ .Values.mastodon.locale }}
|
||||||
{{- if .Values.elasticsearch.enabled }}
|
{{- if .Values.elasticsearch.enabled }}
|
||||||
ES_ENABLED: "true"
|
ES_ENABLED: "true"
|
||||||
ES_HOST: {{ template "mastodon.elasticsearch.fullname" . }}-master
|
ES_HOST: {{ template "mastodon.elasticsearch.fullname" . }}-master
|
||||||
ES_PORT: "9200"
|
ES_PORT: "9200"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
LOCAL_DOMAIN: {{ .Values.ingress.hostname }}
|
LOCAL_DOMAIN: {{ .Values.mastodon.local_domain }}
|
||||||
# https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior
|
# https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior
|
||||||
MALLOC_ARENA_MAX: "2"
|
MALLOC_ARENA_MAX: "2"
|
||||||
NODE_ENV: "production"
|
NODE_ENV: "production"
|
||||||
RAILS_ENV: "production"
|
RAILS_ENV: "production"
|
||||||
REDIS_HOST: {{ template "mastodon.redis.fullname" . }}-master
|
REDIS_HOST: {{ template "mastodon.redis.fullname" . }}-master
|
||||||
REDIS_PORT: "6379"
|
REDIS_PORT: "6379"
|
||||||
{{- if .Values.smtp.auth_method }}
|
{{- if .Values.mastodon.s3.enabled }}
|
||||||
SMTP_AUTH_METHOD: {{ .Values.smtp.auth_method }}
|
S3_BUCKET: {{ .Values.mastodon.s3.bucket }}
|
||||||
|
S3_ENABLED: "true"
|
||||||
|
S3_ENDPOINT: {{ .Values.mastodon.s3.endpoint }}
|
||||||
|
S3_HOSTNAME: {{ .Values.mastodon.s3.hostname }}
|
||||||
|
S3_PROTOCOL: "https"
|
||||||
|
{{- if .Values.mastodon.s3.region }}
|
||||||
|
S3_REGION: {{ .Values.mastodon.s3.region }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.ca_file }}
|
|
||||||
SMTP_CA_FILE: {{ .Values.smtp.ca_file }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.delivery_method }}
|
{{- if .Values.mastodon.smtp.auth_method }}
|
||||||
SMTP_DELIVERY_METHOD: {{ .Values.smtp.delivery_method }}
|
SMTP_AUTH_METHOD: {{ .Values.mastodon.smtp.auth_method }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.domain }}
|
{{- if .Values.mastodon.smtp.ca_file }}
|
||||||
SMTP_DOMAIN: {{ .Values.smtp.domain }}
|
SMTP_CA_FILE: {{ .Values.mastodon.smtp.ca_file }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.enable_starttls_auto }}
|
{{- if .Values.mastodon.smtp.delivery_method }}
|
||||||
SMTP_ENABLE_STARTTLS_AUTO: {{ .Values.smtp.enable_starttls_auto | quote }}
|
SMTP_DELIVERY_METHOD: {{ .Values.mastodon.smtp.delivery_method }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.from_address }}
|
{{- if .Values.mastodon.smtp.domain }}
|
||||||
SMTP_FROM_ADDRESS: {{ .Values.smtp.from_address }}
|
SMTP_DOMAIN: {{ .Values.mastodon.smtp.domain }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.login }}
|
{{- if .Values.mastodon.smtp.enable_starttls_auto }}
|
||||||
SMTP_LOGIN: {{ .Values.smtp.login }}
|
SMTP_ENABLE_STARTTLS_AUTO: {{ .Values.mastodon.smtp.enable_starttls_auto | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.openssl_verify_mode }}
|
{{- if .Values.mastodon.smtp.from_address }}
|
||||||
SMTP_OPENSSL_VERIFY_MODE: {{ .Values.smtp.openssl_verify_mode }}
|
SMTP_FROM_ADDRESS: {{ .Values.mastodon.smtp.from_address }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.password }}
|
{{- if .Values.mastodon.smtp.login }}
|
||||||
SMTP_PASSWORD: {{ .Values.smtp.password }}
|
SMTP_LOGIN: {{ .Values.mastodon.smtp.login }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.port }}
|
{{- if .Values.mastodon.smtp.openssl_verify_mode }}
|
||||||
SMTP_PORT: {{ .Values.smtp.port | quote }}
|
SMTP_OPENSSL_VERIFY_MODE: {{ .Values.mastodon.smtp.openssl_verify_mode }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.reply_to }}
|
{{- if .Values.mastodon.smtp.password }}
|
||||||
SMTP_REPLY_TO: {{ .Values.smtp.reply_to }}
|
SMTP_PASSWORD: {{ .Values.mastodon.smtp.password }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.server }}
|
{{- if .Values.mastodon.smtp.port }}
|
||||||
SMTP_SERVER: {{ .Values.smtp.server }}
|
SMTP_PORT: {{ .Values.mastodon.smtp.port | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.smtp.tls }}
|
{{- if .Values.mastodon.smtp.reply_to }}
|
||||||
SMTP_TLS: {{ .Values.smtp.tls | quote }}
|
SMTP_REPLY_TO: {{ .Values.mastodon.smtp.reply_to }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
STREAMING_CLUSTER_NUM: {{ .Values.application.streaming.workers | quote }}
|
{{- if .Values.mastodon.smtp.server }}
|
||||||
|
SMTP_SERVER: {{ .Values.mastodon.smtp.server }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mastodon.smtp.tls }}
|
||||||
|
SMTP_TLS: {{ .Values.mastodon.smtp.tls | quote }}
|
||||||
|
{{- end }}
|
||||||
|
STREAMING_CLUSTER_NUM: {{ .Values.mastodon.streaming.workers | quote }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{ if .Values.cron.removeMedia.enabled }}
|
{{ if .Values.mastodon.cron.removeMedia.enabled }}
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
@ -6,7 +6,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
schedule: {{ .Values.cron.removeMedia.schedule }}
|
schedule: {{ .Values.mastodon.cron.removeMedia.schedule }}
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
@ -14,9 +14,10 @@ spec:
|
|||||||
name: {{ include "mastodon.fullname" . }}-media-remove
|
name: {{ include "mastodon.fullname" . }}-media-remove
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -35,6 +36,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "mastodon.fullname" . }}-media-remove
|
- name: {{ include "mastodon.fullname" . }}-media-remove
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -50,24 +52,26 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -31,9 +31,10 @@ spec:
|
|||||||
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -52,6 +53,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
@ -63,7 +65,7 @@ spec:
|
|||||||
- exec
|
- exec
|
||||||
- sidekiq
|
- sidekiq
|
||||||
- -c
|
- -c
|
||||||
- {{ .Values.application.sidekiq.concurrency | quote }}
|
- {{ .Values.mastodon.sidekiq.concurrency | quote }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
@ -71,24 +73,26 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
|
@ -41,24 +41,24 @@ spec:
|
|||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.streaming.port | quote }}
|
value: {{ .Values.mastodon.streaming.port | quote }}
|
||||||
ports:
|
ports:
|
||||||
- name: streaming
|
- name: streaming
|
||||||
containerPort: {{ .Values.application.streaming.port }}
|
containerPort: {{ .Values.mastodon.streaming.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
@ -31,6 +31,7 @@ spec:
|
|||||||
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@ -38,6 +39,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
@ -57,29 +59,31 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.application.web.port }}
|
containerPort: {{ .Values.mastodon.web.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "mastodon.fullname" . -}}
|
{{- $fullName := include "mastodon.fullname" . -}}
|
||||||
{{- $svcPort := .Values.service.port -}}
|
{{- $webPort := .Values.mastodon.web.port -}}
|
||||||
|
{{- $streamingPort := .Values.mastodon.streaming.port -}}
|
||||||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
@ -27,15 +28,19 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- host: {{ .Values.ingress.hostname | quote }}
|
{{- range .Values.ingress.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: '/'
|
{{- range .paths }}
|
||||||
|
- path: {{ .path }}
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $fullName }}-web
|
serviceName: {{ $fullName }}-web
|
||||||
servicePort: {{ $svcPort }}
|
servicePort: {{ $webPort }}
|
||||||
- path: '/api/v1/streaming'
|
- path: {{ .path }}api/v1/streaming
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $fullName }}-streaming
|
serviceName: {{ $fullName }}-streaming
|
||||||
servicePort: {{ .Values.application.streaming.port }}
|
servicePort: {{ $streamingPort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -14,9 +14,10 @@ spec:
|
|||||||
name: {{ include "mastodon.fullname" . }}-assets-precompile
|
name: {{ include "mastodon.fullname" . }}-assets-precompile
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -35,6 +36,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "mastodon.fullname" . }}-assets-precompile
|
- name: {{ include "mastodon.fullname" . }}-assets-precompile
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -51,23 +53,25 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
|
@ -15,9 +15,10 @@ spec:
|
|||||||
name: {{ include "mastodon.fullname" . }}-chewy-upgrade
|
name: {{ include "mastodon.fullname" . }}-chewy-upgrade
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -36,6 +37,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "mastodon.fullname" . }}-chewy-setup
|
- name: {{ include "mastodon.fullname" . }}-chewy-setup
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -52,24 +54,26 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.createAdmin.enabled }}
|
{{- if .Values.mastodon.createAdmin.enabled }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
@ -15,9 +15,10 @@ spec:
|
|||||||
name: {{ include "mastodon.fullname" . }}-create-admin
|
name: {{ include "mastodon.fullname" . }}-create-admin
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -36,6 +37,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "mastodon.fullname" . }}-create-admin
|
- name: {{ include "mastodon.fullname" . }}-create-admin
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -44,9 +46,9 @@ spec:
|
|||||||
- bin/tootctl
|
- bin/tootctl
|
||||||
- accounts
|
- accounts
|
||||||
- create
|
- create
|
||||||
- {{ .Values.createAdmin.username }}
|
- {{ .Values.mastodon.createAdmin.username }}
|
||||||
- --email
|
- --email
|
||||||
- {{ .Values.createAdmin.email }}
|
- {{ .Values.mastodon.createAdmin.email }}
|
||||||
- --confirmed
|
- --confirmed
|
||||||
- --role
|
- --role
|
||||||
- admin
|
- admin
|
||||||
@ -57,24 +59,26 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -14,9 +14,10 @@ spec:
|
|||||||
name: {{ include "mastodon.fullname" . }}-db-migrate
|
name: {{ include "mastodon.fullname" . }}-db-migrate
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -35,6 +36,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "mastodon.fullname" . }}-db-migrate
|
- name: {{ include "mastodon.fullname" . }}-db-migrate
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -51,23 +53,25 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
|
@ -1,23 +1,24 @@
|
|||||||
{{- if .Values.createAdmin.enabled }}
|
{{- if .Values.mastodon.createAdmin.enabled }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-set-admin-password
|
name: {{ include "mastodon.fullname" . }}-create-admin
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": post-install
|
"helm.sh/hook": post-install
|
||||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||||
"helm.sh/hook-weight": "100"
|
"helm.sh/hook-weight": "-1"
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-set-admin-password
|
name: {{ include "mastodon.fullname" . }}-create-admin
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
# ensure we run on the same node as the other rails components; only
|
# ensure we run on the same node as the other rails components; only
|
||||||
# required when using PVCs that are ReadWriteOnce
|
# required when using PVCs that are ReadWriteOnce
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.persistence.system.accessMode) }}
|
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@ -36,6 +37,7 @@ spec:
|
|||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "mastodon.fullname" . }}-set-admin-password
|
- name: {{ include "mastodon.fullname" . }}-set-admin-password
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
@ -43,7 +45,7 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- "/bin/bash"
|
- "/bin/bash"
|
||||||
- "-c"
|
- "-c"
|
||||||
- "echo \"account=Account.find_by(username:'{{ .Values.createAdmin.username }}') ; user=User.find_by(account:account) ; user.password='{{ .Values.createAdmin.password }}' ; user.save!\" | rails c"
|
- "echo \"account=Account.find_by(username:'{{ .Values.mastodon.createAdmin.username }}') ; user=User.find_by(account:account) ; user.password='{{ .Values.mastodon.createAdmin.password }}' ; user.save!\" | rails c"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
@ -51,24 +53,26 @@ spec:
|
|||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
{{- if .Values.postgresql.enabled }}
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ .Release.Name }}-postgresql
|
||||||
|
{{- else }}
|
||||||
|
name: {{ template "mastodon.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
key: postgresql-password
|
key: postgresql-password
|
||||||
{{- else }}
|
|
||||||
value: {{ .Values.postgresql.postgresqlPassword | quote }}
|
|
||||||
{{- end }}
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ .Release.Name }}-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.application.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
- name: system
|
- name: system
|
||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@ -7,7 +7,8 @@ metadata:
|
|||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.persistence.system.accessMode }}
|
- {{ .Values.mastodon.persistence.system.accessMode }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.persistence.assets.resources | nindent 4}}
|
{{- toYaml .Values.mastodon.persistence.assets.resources | nindent 4}}
|
||||||
storageClassName: {{ .Values.persistence.assets.storageClassName }}
|
storageClassName: {{ .Values.mastodon.persistence.assets.storageClassName }}
|
||||||
|
{{- end }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@ -7,7 +7,8 @@ metadata:
|
|||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.persistence.system.accessMode }}
|
- {{ .Values.mastodon.persistence.system.accessMode }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.persistence.system.resources | nindent 4}}
|
{{- toYaml .Values.mastodon.persistence.system.resources | nindent 4}}
|
||||||
storageClassName: {{ .Values.persistence.system.storageClassName }}
|
storageClassName: {{ .Values.mastodon.persistence.system.storageClassName }}
|
||||||
|
{{- end }}
|
||||||
|
@ -6,23 +6,30 @@ metadata:
|
|||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
{{- if not (empty .Values.secrets.secret_key_base) }}
|
{{- if .Values.mastodon.s3.enabled }}
|
||||||
SECRET_KEY_BASE: "{{ .Values.secrets.secret_key_base | b64enc }}"
|
AWS_ACCESS_KEY_ID: "{{ .Values.mastodon.s3.access_key | b64enc }}"
|
||||||
{{- else }}
|
AWS_SECRET_ACCESS_KEY: "{{ .Values.mastodon.s3.access_secret | b64enc }}"
|
||||||
SECRET_KEY_BASE: {{ required "secret_key_base is required" .Values.secrets.secret_key_base }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (empty .Values.secrets.otp_secret) }}
|
{{- if not (empty .Values.mastodon.secrets.secret_key_base) }}
|
||||||
OTP_SECRET: "{{ .Values.secrets.otp_secret | b64enc }}"
|
SECRET_KEY_BASE: "{{ .Values.mastodon.secrets.secret_key_base | b64enc }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
OTP_SECRET: {{ required "otp_secret is required" .Values.secrets.otp_secret }}
|
SECRET_KEY_BASE: {{ required "secret_key_base is required" .Values.mastodon.secrets.secret_key_base }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (empty .Values.secrets.vapid.private_key) }}
|
{{- if not (empty .Values.mastodon.secrets.otp_secret) }}
|
||||||
VAPID_PRIVATE_KEY: "{{ .Values.secrets.vapid.private_key | b64enc }}"
|
OTP_SECRET: "{{ .Values.mastodon.secrets.otp_secret | b64enc }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
VAPID_PRIVATE_KEY: {{ required "vapid.private_key is required" .Values.secrets.vapid.private_key }}
|
OTP_SECRET: {{ required "otp_secret is required" .Values.mastodon.secrets.otp_secret }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not (empty .Values.secrets.vapid.public_key) }}
|
{{- if not (empty .Values.mastodon.secrets.vapid.private_key) }}
|
||||||
VAPID_PUBLIC_KEY: "{{ .Values.secrets.vapid.public_key | b64enc }}"
|
VAPID_PRIVATE_KEY: "{{ .Values.mastodon.secrets.vapid.private_key | b64enc }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
VAPID_PUBLIC_KEY: {{ required "vapid.public_key is required" .Values.secrets.vapid.public_key }}
|
VAPID_PRIVATE_KEY: {{ required "vapid.private_key is required" .Values.mastodon.secrets.vapid.private_key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if not (empty .Values.mastodon.secrets.vapid.public_key) }}
|
||||||
|
VAPID_PUBLIC_KEY: "{{ .Values.mastodon.secrets.vapid.public_key | b64enc }}"
|
||||||
|
{{- else }}
|
||||||
|
VAPID_PUBLIC_KEY: {{ required "vapid.public_key is required" .Values.mastodon.secrets.vapid.public_key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if not .Values.postgresql.enabled }}
|
||||||
|
postgresql-password: "{{ .Values.postgresql.postgresqlPassword | b64enc }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -7,7 +7,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: {{ .Values.service.type }}
|
type: {{ .Values.service.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.application.streaming.port }}
|
- port: {{ .Values.mastodon.streaming.port }}
|
||||||
targetPort: streaming
|
targetPort: streaming
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: streaming
|
name: streaming
|
||||||
|
@ -7,7 +7,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: {{ .Values.service.type }}
|
type: {{ .Values.service.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.service.port }}
|
- port: {{ .Values.mastodon.web.port }}
|
||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
@ -2,16 +2,89 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: tootsuite/mastodon
|
repository: tootsuite/mastodon
|
||||||
pullPolicy: Always
|
|
||||||
# https://hub.docker.com/r/tootsuite/mastodon/tags
|
# https://hub.docker.com/r/tootsuite/mastodon/tags
|
||||||
tag: v3.3.0
|
#
|
||||||
# alternatively, use `latest` for the latest release or `edge` for the image
|
# alternatively, use `latest` for the latest release or `edge` for the image
|
||||||
# built from the most recent commit
|
# built from the most recent commit
|
||||||
#
|
#
|
||||||
# tag: latest
|
# tag: latest
|
||||||
|
tag: v3.4.1
|
||||||
|
# use `Always` when using `latest` tag
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
mastodon:
|
||||||
|
# create an initial administrator user; the password is autogenerated and will
|
||||||
|
# have to be reset
|
||||||
|
# CHANGE PASSWORD!!
|
||||||
|
createAdmin:
|
||||||
|
enabled: false
|
||||||
|
username: not_gargron
|
||||||
|
password: mystronpassword
|
||||||
|
email: not@example.com
|
||||||
|
cron:
|
||||||
|
# run `tootctl media remove` every week
|
||||||
|
removeMedia:
|
||||||
|
enabled: true
|
||||||
|
schedule: "0 0 * * 0"
|
||||||
|
# available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
|
||||||
|
locale: en
|
||||||
|
local_domain: mastodon.local
|
||||||
|
persistence:
|
||||||
|
assets:
|
||||||
|
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
||||||
|
# scalability, since it requires the Rails and Sidekiq pods to run on the
|
||||||
|
# same node.
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
system:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Gi
|
||||||
|
s3:
|
||||||
|
enabled: false
|
||||||
|
access_key: ""
|
||||||
|
access_secret: ""
|
||||||
|
bucket: ""
|
||||||
|
endpoint: https://us-east-1.linodeobjects.com
|
||||||
|
hostname: us-east-1.linodeobjects.com
|
||||||
|
region: ""
|
||||||
|
# these must be set manually; autogenerated keys are rotated on each upgrade
|
||||||
|
secrets:
|
||||||
|
secret_key_base: ""
|
||||||
|
otp_secret: ""
|
||||||
|
vapid:
|
||||||
|
private_key: ""
|
||||||
|
public_key: ""
|
||||||
|
sidekiq:
|
||||||
|
concurrency: 25
|
||||||
|
smtp:
|
||||||
|
auth_method: plain
|
||||||
|
ca_file:
|
||||||
|
delivery_method: smtp
|
||||||
|
domain:
|
||||||
|
enable_starttls_auto: true
|
||||||
|
from_address: notifications@example.com
|
||||||
|
login:
|
||||||
|
openssl_verify_mode: peer
|
||||||
|
password:
|
||||||
|
port: 587
|
||||||
|
reply_to:
|
||||||
|
server: smtp.mailgun.org
|
||||||
|
tls: false
|
||||||
|
streaming:
|
||||||
|
port: 4000
|
||||||
|
# this should be set manually since os.cpus() returns the number of CPUs on
|
||||||
|
# the node running the pod, which is unrelated to the resources allocated to
|
||||||
|
# the pod by k8s
|
||||||
|
workers: 1
|
||||||
|
web:
|
||||||
|
port: 3000
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: nginx
|
kubernetes.io/ingress.class: nginx
|
||||||
kubernetes.io/tls-acme: "true"
|
kubernetes.io/tls-acme: "true"
|
||||||
@ -22,65 +95,15 @@ ingress:
|
|||||||
# nginx.ingress.kubernetes.io/proxy-body-size: 40m
|
# nginx.ingress.kubernetes.io/proxy-body-size: 40m
|
||||||
# for the NGINX ingress controller:
|
# for the NGINX ingress controller:
|
||||||
# nginx.org/client-max-body-size: 40m
|
# nginx.org/client-max-body-size: 40m
|
||||||
# this value is used for LOCAL_DOMAIN
|
hosts:
|
||||||
hostname: mastodon.local
|
- host: mastodon.local
|
||||||
|
paths:
|
||||||
|
- path: '/'
|
||||||
tls:
|
tls:
|
||||||
- secretName: mastodon-tls
|
- secretName: mastodon-tls
|
||||||
hosts:
|
hosts:
|
||||||
- mastodon.local
|
- mastodon.local
|
||||||
|
|
||||||
# create an initial administrator user
|
|
||||||
# CHANGE PASSWORD!
|
|
||||||
createAdmin:
|
|
||||||
enabled: false
|
|
||||||
username: not_gargron
|
|
||||||
password: mystronpassword
|
|
||||||
email: not@example.com
|
|
||||||
|
|
||||||
# available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
|
|
||||||
locale: en
|
|
||||||
|
|
||||||
cron:
|
|
||||||
# run `tootctl media remove` every week
|
|
||||||
removeMedia:
|
|
||||||
enabled: true
|
|
||||||
schedule: "0 0 * * 0"
|
|
||||||
|
|
||||||
application:
|
|
||||||
web:
|
|
||||||
port: 3000
|
|
||||||
streaming:
|
|
||||||
port: 4000
|
|
||||||
# this should be set manually since os.cpus() returns the number of CPUs on
|
|
||||||
# the node running the pod, which is unrelated to the resources allocated to
|
|
||||||
# the pod by k8s
|
|
||||||
workers: 1
|
|
||||||
sidekiq:
|
|
||||||
concurrency: 25
|
|
||||||
|
|
||||||
# these must be set manually; autogenerated keys are rotated on each upgrade
|
|
||||||
secrets:
|
|
||||||
secret_key_base: ""
|
|
||||||
otp_secret: ""
|
|
||||||
vapid:
|
|
||||||
private_key: ""
|
|
||||||
public_key: ""
|
|
||||||
|
|
||||||
smtp:
|
|
||||||
auth_method: plain
|
|
||||||
ca_file:
|
|
||||||
delivery_method: smtp
|
|
||||||
domain:
|
|
||||||
enable_starttls_auto: true
|
|
||||||
from_address: notifications@example.com
|
|
||||||
login:
|
|
||||||
openssl_verify_mode: peer
|
|
||||||
password:
|
|
||||||
port: 587
|
|
||||||
reply_to:
|
|
||||||
server: smtp.mailgun.org
|
|
||||||
tls: false
|
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
# `false` will disable full-text search
|
# `false` will disable full-text search
|
||||||
@ -89,29 +112,18 @@ elasticsearch:
|
|||||||
# RAILS_ENV=production bundle exec rake chewy:sync
|
# RAILS_ENV=production bundle exec rake chewy:sync
|
||||||
# (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
|
# (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
|
||||||
enabled: true
|
enabled: true
|
||||||
master:
|
# may be removed once https://github.com/tootsuite/mastodon/pull/13828 is part
|
||||||
name: master
|
# of a tagged release
|
||||||
## Number of master-eligible node(s) replicas to deploy
|
image:
|
||||||
##
|
tag: 6
|
||||||
replicas: 2
|
|
||||||
coordinating:
|
|
||||||
## Number of coordinating-only node(s) replicas to deploy
|
|
||||||
##
|
|
||||||
replicas: 2
|
|
||||||
data:
|
|
||||||
name: data
|
|
||||||
## Number of data node(s) replicas to deploy
|
|
||||||
##
|
|
||||||
replicas: 2
|
|
||||||
|
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
||||||
postgresql:
|
postgresql:
|
||||||
# Disable for external PostgreSQL
|
# disable if you want to use an existing db; in which case the values below
|
||||||
|
# must match those of that external postgres instance
|
||||||
enabled: true
|
enabled: true
|
||||||
# Set for external PostgreSQL
|
# postgresqlHostname: preexisting-postgresql
|
||||||
# postgresqlHost: postgresql.local
|
postgresqlDatabase: mastodon_production
|
||||||
postgresqlDatabase: mastodon
|
|
||||||
# you must set a password; the password generated by the postgresql chart will
|
# you must set a password; the password generated by the postgresql chart will
|
||||||
# be rotated on each upgrade:
|
# be rotated on each upgrade:
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
|
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
|
||||||
@ -121,27 +133,8 @@ postgresql:
|
|||||||
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
usePassword: true
|
auth:
|
||||||
# you must set a password; the password generated by the redis chart will be
|
password: ""
|
||||||
# rotated on each upgrade:
|
|
||||||
password: ""
|
|
||||||
cluster:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
persistence:
|
|
||||||
assets:
|
|
||||||
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
|
||||||
# scalability, since it requires the Rails and Sidekiq pods to run on the
|
|
||||||
# same node.
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 10Gi
|
|
||||||
system:
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 100Gi
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
Loading…
Reference in New Issue
Block a user