Compare commits
No commits in common. "82a928c96ad254c9e3ec9bb06b2d7bd035cdab23" and "e612043e5f83b3c50555c23cfb393f768423fa27" have entirely different histories.
82a928c96a
...
e612043e5f
@ -2,16 +2,6 @@
|
|||||||
{{- $fullName := include "admin.fullname" . -}}
|
{{- $fullName := include "admin.fullname" . -}}
|
||||||
{{- $ns := include "admin.namespace" . -}}
|
{{- $ns := include "admin.namespace" . -}}
|
||||||
{{- $hosts := .Values.admin.ingress.hosts | default list -}}
|
{{- $hosts := .Values.admin.ingress.hosts | default list -}}
|
||||||
{{- $tlsSecret := .Values.admin.ingress.tlsSecret | default "" -}}
|
|
||||||
{{- $useCertManager := $.Values.certManager.enabled -}}
|
|
||||||
{{- $secretName := "" -}}
|
|
||||||
{{- if ne $tlsSecret "" -}}
|
|
||||||
{{- $secretName = $tlsSecret -}}
|
|
||||||
{{- else if $useCertManager -}}
|
|
||||||
{{- $secretName = printf "%s-admin-tls" $fullName -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- $tlsEnabled := or $useCertManager (ne $tlsSecret "") -}}
|
|
||||||
{{- $addCertManagerAnnotation := and $useCertManager (eq $tlsSecret "") -}}
|
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@ -24,7 +14,7 @@ metadata:
|
|||||||
{{- if .Values.admin.ingress.annotations }}
|
{{- if .Values.admin.ingress.annotations }}
|
||||||
{{- toYaml .Values.admin.ingress.annotations | nindent 4 }}
|
{{- toYaml .Values.admin.ingress.annotations | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and $addCertManagerAnnotation (not (hasKey (.Values.admin.ingress.annotations | default dict) "cert-manager.io/cluster-issuer")) }}
|
{{- if $.Values.certManager.enabled }}
|
||||||
cert-manager.io/cluster-issuer: {{ $.Values.certManager.clusterIssuerName }}
|
cert-manager.io/cluster-issuer: {{ $.Values.certManager.clusterIssuerName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
||||||
@ -34,17 +24,17 @@ metadata:
|
|||||||
nginx.ingress.kubernetes.io/enable-websocket: "true"
|
nginx.ingress.kubernetes.io/enable-websocket: "true"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
{{- if and $hosts $tlsEnabled }}
|
{{- if and $hosts $.Values.certManager.enabled }}
|
||||||
tls:
|
tls:
|
||||||
{{- range $hosts }}
|
{{- range $hosts }}
|
||||||
- hosts:
|
- hosts:
|
||||||
- {{ . | toString }}
|
- {{ .host }}
|
||||||
secretName: {{ $secretName }}
|
secretName: {{ $fullName }}-admin-tls
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
{{- range $hosts }}
|
{{- range $hosts }}
|
||||||
- host: {{ . | toString }}
|
- host: {{ .host }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@ -33,14 +33,9 @@ admin:
|
|||||||
port: 3000
|
port: 3000
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: false
|
||||||
hosts:
|
hosts: [ ]
|
||||||
- admin.gitdata.me
|
annotations: { }
|
||||||
# tlsSecret: my-tls-secret # uncomment to use a pre-existing TLS secret (overrides cert-manager auto-issue)
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: cloudflare-acme-cluster-issuer # auto-set by template when certManager.enabled=true
|
|
||||||
kubernetes.io/ingress.class: nginx
|
|
||||||
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@ -69,25 +64,15 @@ admin:
|
|||||||
redisUrl: APP_REDIS_URL
|
redisUrl: APP_REDIS_URL
|
||||||
nextAuthSecret: APP_NEXTAUTH_SECRET
|
nextAuthSecret: APP_NEXTAUTH_SECRET
|
||||||
|
|
||||||
env:
|
env: [ ]
|
||||||
DATABASE_URL: "postgresql://gitdataai:gitdataai123@cnpg-cluster-rw.cnpg:5432/gitdataai?sslmode=disable"
|
|
||||||
REDIS_CLUSTER_URLS: "redis://:redis123@valkey-cluster.valkey-cluster.svc.cluster.local:6379"
|
|
||||||
REDIS_URL: "redis://:redis123@valkey-cluster.valkey-cluster.svc.cluster.local:6379"
|
|
||||||
ADMIN_SESSION_COOKIE_NAME: admin_session
|
|
||||||
ADMIN_SESSION_TTL: 604800
|
|
||||||
ADMIN_SUPER_USERNAME: admin
|
|
||||||
ADMIN_SUPER_PASSWORD: admin123
|
|
||||||
COOKIE_SECURE: false
|
|
||||||
COOKIE_SAME_SITE: lax
|
|
||||||
|
|
||||||
|
|
||||||
nodeSelector: { }
|
nodeSelector: { }
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
affinity: { }
|
affinity: { }
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
enabled: true
|
enabled: false
|
||||||
databaseUrl: "postgresql://gitdataai:gitdataai123@cnpg-cluster-rw.cnpg:5432/gitdataai?sslmode=disable"
|
databaseUrl: ""
|
||||||
redisUrl: "redis://:redis123@valkey-cluster.valkey-cluster.svc.cluster.local:6379"
|
redisUrl: ""
|
||||||
nextAuthSecret: ""
|
nextAuthSecret: ""
|
||||||
extra: { }
|
extra: { }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user