postgres-operator: bump to v1.9.0, helm chart v1.9.0

postgres-operator-ui: bump to v1.9.0, helm chart v1.9.0

astodon: bump to v4.1.2, helm chart v4.0.0

cert-manager: bump to v1.11.1, helm chart v1.11.1
This commit is contained in:
ace 2023-04-08 22:26:06 +03:00
parent 68d6bd1538
commit 08173eccfd
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
3 changed files with 46 additions and 13 deletions

View File

@ -6,7 +6,7 @@ nfs_client_provisioner_hdd_version: 4.0.14
nfs_client_provisioner_ssd_version: 4.0.14 nfs_client_provisioner_ssd_version: 4.0.14
# Cert-manager # Cert-manager
cert_manager_version: 1.10.2 cert_manager_version: 1.11.1
# External-DNS # External-DNS
external_dns_version: 6.8.1 external_dns_version: 6.8.1
@ -20,8 +20,8 @@ internal_ingress_nginx_version: 4.2.0
local_ingress_nginx_version: 4.2.0 local_ingress_nginx_version: 4.2.0
# PostgreSQL operator # PostgreSQL operator
postgres_operator_ui_version: 1.8.2 postgres_operator_version: 1.9.0
postgres_operator_version: 1.8.2 postgres_operator_ui_version: 1.9.0
# OpenLDAP # OpenLDAP
openldap_version: 1.2.7 openldap_version: 1.2.7
@ -45,7 +45,7 @@ gitea_version: 7.0.4
harbor_version: 1.9.4 harbor_version: 1.9.4
# Mastodon # Mastodon
mastodon_version: 0.3.0 mastodon_version: 4.0.0
# Nextcloud # Nextcloud
nextcloud_version: 3.5.1 nextcloud_version: 3.5.1

View File

@ -7,7 +7,7 @@ mastodon_admin_email: "mastodon@{{ mail_domain | default(domain) }}"
mastodon_default_values: mastodon_default_values:
ingress: ingress:
enabled: true enabled: true
className: "{{ external_ingress_class if mastodon_publish else internal_ingress_class }}" ingressClassName: "{{ external_ingress_class if mastodon_publish else internal_ingress_class }}"
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod" cert-manager.io/cluster-issuer: "letsencrypt-prod"
kubernetes.io/tls-acme: "true" kubernetes.io/tls-acme: "true"
@ -67,7 +67,7 @@ mastodon_default_values:
ca_file: ca_file:
delivery_method: smtp delivery_method: smtp
domain: "{{ domain }}" domain: "{{ domain }}"
enable_starttls_auto: false enable_starttls: false
from_address: "{{ mastodon_admin_email }}" from_address: "{{ mastodon_admin_email }}"
login: "{{ mastodon_admin_user | default(mastodon_admin_username) | default('mastodon') }}" login: "{{ mastodon_admin_user | default(mastodon_admin_username) | default('mastodon') }}"
openssl_verify_mode: false openssl_verify_mode: false
@ -115,18 +115,18 @@ mastodon_default_values:
## ##
replicas: 1 replicas: 1
# 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 for external PostgreSQL
enabled: false enabled: false
postgresqlHostname: "{{ namespace }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local" postgresqlHostname: "{{ namespace }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local"
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
postgresqlUsername: "{{ mastodon_db_username }}" auth:
postgresqlPassword: "{{ mastodon_db_password }}" database: mastodon
username: "{{ mastodon_db_username }}"
password: "{{ mastodon_db_password }}"
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters # https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
redis: redis:
@ -134,5 +134,3 @@ mastodon_default_values:
enabled: true enabled: true
auth: auth:
password: "{{ mastodon_vapid_public_key_base64 | hash('md5') }}" password: "{{ mastodon_vapid_public_key_base64 | hash('md5') }}"

View File

@ -15,3 +15,38 @@
chart_ref: "{{ mastodon_chart | default('ghp/mastodon') }}" chart_ref: "{{ mastodon_chart | default('ghp/mastodon') }}"
chart_version: "{{ mastodon_version | default(omit) }}" chart_version: "{{ mastodon_version | default(omit) }}"
release_values: "{{ mastodon_combined_values | from_yaml }}" release_values: "{{ mastodon_combined_values | from_yaml }}"
- name: Search for mastodon web pod
kubernetes.core.k8s_info:
kind: Pod
namespace: "{{ mastodon_namespace | default(namespace) }}"
label_selectors:
- app.kubernetes.io/component=web
- app.kubernetes.io/instance=mastodon
register: mastodon_web_pod_name
- name: Remove mastodon web pod for restart
kubernetes.core.k8s:
state: absent
api_version: v1
kind: Pod
namespace: "{{ mastodon_namespace | default(namespace) }}"
name: "{{ mastodon_web_pod_name.resources[0].metadata.name }}"
- name: Search for mastodon streaming pod
kubernetes.core.k8s_info:
kind: Pod
namespace: "{{ mastodon_namespace | default(namespace) }}"
label_selectors:
- app.kubernetes.io/component=streaming
- app.kubernetes.io/instance=mastodon
register: mastodon_streaming_pod_name
- name: Remove mastodon streaming pod for restart
kubernetes.core.k8s:
state: absent
api_version: v1
kind: Pod
namespace: "{{ mastodon_namespace | default(namespace) }}"
name: "{{ mastodon_streaming_pod_name.resources[0].metadata.name }}"