Migrated k3s manifests to use traefik ingres route
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -16,7 +17,6 @@ spec:
|
||||
containers:
|
||||
- name: headlamp
|
||||
image: ghcr.io/headlamp-k8s/headlamp:latest
|
||||
# We only use -in-cluster. No other flags allowed.
|
||||
args:
|
||||
- "-in-cluster"
|
||||
ports:
|
||||
@@ -29,11 +29,25 @@ metadata:
|
||||
name: headlamp
|
||||
namespace: kube-system
|
||||
spec:
|
||||
type: NodePort
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app.kubernetes.io/name: headlamp
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 4466
|
||||
nodePort: 30001
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: headlamp-web
|
||||
namespace: kube-system
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`cluster.khongisa.co.za`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: headlamp
|
||||
port: 80
|
||||
Reference in New Issue
Block a user