diff --git a/outline/Chart.yaml b/outline/Chart.yaml index fefb4ab..7b57c68 100644 --- a/outline/Chart.yaml +++ b/outline/Chart.yaml @@ -4,7 +4,7 @@ description: A Helm chart to deploy Outline on Kubernetes type: application -version: 1.0.0+up1.6.1 +version: 1.1.0+up1.6.1 appVersion: "1.6.1" maintainers: diff --git a/outline/templates/outline.ingress.yaml b/outline/templates/outline.ingress.yaml new file mode 100644 index 0000000..b4c33cc --- /dev/null +++ b/outline/templates/outline.ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ .Release.Name }}-{{ .Chart.Name }}-ingress + annotations: + cert-manager.io/cluster-issuer: {{ required "A Cluster-Issuer must be provided" .Values.ingress.clusterIssuer}} +spec: + ingressClassName: nginx + rules: + - host: {{ required "A Domain/Host must be provided" .Values.ingress.domain }} + http: + paths: + - backend: + service: + name: {{ .Release.Name }}-{{ .Chart.Name }}-service + port: + name: http + path: / + pathType: Prefix + tls: + - hosts: + - {{ required "A Domain/Host must be provided" .Values.ingress.domain }} + secretName: tls-{{ .Release.Name }}-{{ .Chart.Name }}-ingress diff --git a/outline/templates/outline.service.yaml b/outline/templates/outline.service.yaml new file mode 100644 index 0000000..4c42512 --- /dev/null +++ b/outline/templates/outline.service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Release.Name }}-{{ .Chart.Name }}-service +spec: + selector: + app: {{ .Release.Name }}-{{ .Chart.Name }}-deployment + ports: + - protocol: TCP + port: 80 + targetPort: http + name: http + type: ClusterIP