Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
44 changes: 44 additions & 0 deletions charts/karpor/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: karpor-ingress
namespace: {{ .Values.namespace }}
labels:
{{- include "karpor.labels" (dict "context" . "component" "karpor-ingress") | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- with .pathType }}
pathType: {{ . }}
{{- end }}
backend:
service:
name: karpor-server
port:
number: {{ $.Values.server.port }}
{{- end }}
{{- end }}
{{- end }}
24 changes: 24 additions & 0 deletions charts/karpor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,27 @@ job:
repo: kusionstack/karpor
# -- Tag for Karpor image. Defaults to the chart's appVersion if not specified.
tag: ""

# Ingress configuration
ingress:
# -- Enable ingress for Karpor server.
enabled: true
# -- Ingress class name.
className: "nginx"
# -- Annotations to be added to the ingress resource.
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
# -- TLS configuration for the ingress resource.
tls: []
# Example:
# tls:
# - hosts:
# - karpor.example.com
# secretName: karpor-tls
# -- Hosts configuration for the ingress resource.
hosts:
- host: karpor.example.com
paths:
- path: /
pathType: Prefix