diff --git a/kubernetes-templates/headlamp.yml b/kubernetes-templates/headlamp.yml new file mode 100644 index 0000000..1530682 --- /dev/null +++ b/kubernetes-templates/headlamp.yml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: headlamp + namespace: kube-system +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: headlamp + template: + metadata: + labels: + app.kubernetes.io/name: headlamp + spec: + containers: + - name: headlamp + image: ghcr.io/headlamp-k8s/headlamp:latest + # We only use -in-cluster. No other flags allowed. + args: + - "-in-cluster" + ports: + - containerPort: 4466 + name: http +--- +apiVersion: v1 +kind: Service +metadata: + name: headlamp + namespace: kube-system +spec: + type: NodePort + selector: + app.kubernetes.io/name: headlamp + ports: + - protocol: TCP + port: 80 + targetPort: 4466 + nodePort: 30001 \ No newline at end of file diff --git a/kubernetes-templates/traefik-dashboard.yml b/kubernetes-templates/traefik-dashboard.yml new file mode 100644 index 0000000..aec3100 --- /dev/null +++ b/kubernetes-templates/traefik-dashboard.yml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: traefik-dashboard-nodeport + namespace: kube-system +spec: + type: NodePort + selector: + app.kubernetes.io/name: traefik + ports: + - name: admin + protocol: TCP + port: 8080 + targetPort: 8080 + nodePort: 30000 \ No newline at end of file