Update 4 files

- /charts/durpapi/templates/service.yaml
- /charts/durpapi/templates/deployment.yaml
- /charts/durpapi/templates/ingress.yaml
- /charts/durpapi/values.yaml
This commit is contained in:
2023-04-16 13:45:31 +00:00
parent 5f382a605a
commit 287b850c52
4 changed files with 12 additions and 37 deletions

View File

@@ -1,31 +1,7 @@
#apiVersion: networking.k8s.io/v1
#kind: Ingress
#metadata:
# name: durpapi-ingress
# annotations:
# kubernetes.io/ingress.class: nginx
# cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterissuer }}
#spec:
# rules:
# - host: {{ .Values.ingress.host }}
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: durpapi
# port:
# number: 80
# tls:
# - hosts:
# - {{ .Values.ingress.host }}
# secretName: {{ .Values.ingress.tls }}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: durpapi-ingress
name: {{ .Chart.Name }}-ingress
spec:
entryPoints:
- websecure
@@ -33,7 +9,7 @@ spec:
- match: Host("{{ .Values.ingress.host }}") && PathPrefix(`/`)
kind: Rule
services:
- name: {{ .Values.service.name }}
- name: {{ .Values.service.name }}-service
port: {{ .Values.service.targetport }}
tls:
secretName: {{ .Values.ingress.tls }}