Migrated k3s manifests to use traefik ingres route
This commit is contained in:
@@ -119,7 +119,7 @@ metadata:
|
||||
name: vscode-service
|
||||
namespace: vscode
|
||||
spec:
|
||||
type: NodePort
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: vscode
|
||||
ports:
|
||||
@@ -127,7 +127,6 @@ spec:
|
||||
protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
nodePort: 33000
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -135,7 +134,7 @@ metadata:
|
||||
name: vscode-dev-service
|
||||
namespace: vscode
|
||||
spec:
|
||||
type: NodePort
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: vscode
|
||||
ports:
|
||||
@@ -143,9 +142,52 @@ spec:
|
||||
protocol: TCP
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
nodePort: 33001
|
||||
- name: dotnet-dev
|
||||
protocol: TCP
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
nodePort: 33002
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: vscode-web
|
||||
namespace: vscode
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`code.khongisa.co.za`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: vscode-service
|
||||
port: 8080
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: vscode-node-uat
|
||||
namespace: vscode
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`node.uat.khongisa.co.za`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: vscode-dev-service
|
||||
port: 3000
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: vscode-dotnet-uat
|
||||
namespace: vscode
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`dotnet.uat.khongisa.co.za`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: vscode-dev-service
|
||||
port: 5000
|
||||
Reference in New Issue
Block a user