Skip to content

Instantly share code, notes, and snippets.

View AlexanderWiechert's full-sized avatar

AlexanderWiechert

View GitHub Profile
@AlexanderWiechert
AlexanderWiechert / service.yaml
Created September 21, 2023 13:45
standard service template
apiVersion: v1
kind: Service
metadata:
name: {{ include "mychart.fullname" . }}
labels:
{{- include "mychart.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
@AlexanderWiechert
AlexanderWiechert / ingress.yaml
Created September 21, 2023 12:07
standard ingress template
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "chart.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata: