Commit 7a81cb59 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove kafka magic

parent 78b29688
helm upgrade --install adm-kafkamagic-deployment ./magic
\ No newline at end of file
apiVersion: v2
name: kafkamagic
description: Deployment for kafkamagic to explore the kafka clusters.
type: application
version: 1.0.0
appVersion: latest
maintainers:
- name: Jonas Waeber
email: jonas.waeber@unibas.ch
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
namespace: "{{ .Values.k8sNamespace }}"
labels:
app: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
spec:
selector:
matchLabels:
app: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
replicas: {{ .Values.k8sReplicas }}
template:
metadata:
labels:
app: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
spec:
containers:
- name: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}-container"
image: "{{ .Values.image }}:{{ .Values.tag }}"
ports:
- containerPort: {{ .Values.internalPort }}
name: http
protocol: TCP
imagePullPolicy: Always
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: "{{ .Values.k8sNamespace }}"
name: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}-ingress"
labels:
app: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ .Values.whitelistIPRange }}"
spec:
tls:
- hosts:
- "{{ .Values.host }}"
secretName: "{{ .Values.host }}-tls"
rules:
- host: "{{ .Values.host }}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}-service"
port:
number: {{ .Values.servicePort }}
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
namespace: "{{ .Values.k8sNamespace }}"
name: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}-service"
labels:
app: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
spec:
ports:
- port: {{ .Values.servicePort }}
targetPort: {{ .Values.internalPort }}
selector:
app: "{{ .Values.k8sGroup }}-{{ .Values.k8sName }}"
group: "{{ .Values.k8sGroupName }}"
clusterIP: None
\ No newline at end of file
image: digitsy/kafka-magic
tag: latest
k8sGroup: adm
k8sGroupName: administration
k8sName: kafkamagic
k8sNamespace: ub-digitale-dienste
k8sReplicas: 1
host: kafka.memobase.k8s.unibas.ch
whitelistIPRange: "131.152.0.0/16"
internalPort: 80
servicePort: 8080
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment