mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Change svc and ing
This commit is contained in:
+2
-18
@@ -3,24 +3,8 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: nas-ingress
|
name: nas-ingress
|
||||||
annotations:
|
annotations:
|
||||||
# nginx.ingress.kubernetes.io/rewrite-target: /
|
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
||||||
# nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
||||||
# type of authentication
|
|
||||||
# nginx.ingress.kubernetes.io/auth-type: basic
|
|
||||||
# name of the secret that contains the user/password definitions
|
|
||||||
# nginx.ingress.kubernetes.io/auth-secret: longhorn-basic-auth
|
|
||||||
# message to display with an appropriate context why the authentication is required
|
|
||||||
# nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required '
|
|
||||||
|
|
||||||
# nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000/"
|
|
||||||
# nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE"
|
|
||||||
# If you encounter a redirect loop or are getting a 307 response code
|
|
||||||
# then you need to force the nginx ingress to connect to the backend using HTTPS.
|
|
||||||
#
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
|
||||||
# namespace: ente-photos
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
@@ -33,7 +17,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: nas-external
|
name: nas-external
|
||||||
port:
|
port:
|
||||||
number: 5000
|
number: 5001
|
||||||
|
|
||||||
# TLS configuration for HTTPS
|
# TLS configuration for HTTPS
|
||||||
tls:
|
tls:
|
||||||
|
|||||||
+8
-2
@@ -5,6 +5,12 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: ExternalName
|
type: ExternalName
|
||||||
externalName: 192.168.1.99
|
externalName: 192.168.1.99
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
ports:
|
ports:
|
||||||
- port: 5000
|
- name: nas-5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
port: 5000
|
||||||
|
- name: nas-5001
|
||||||
|
protocol: TCP
|
||||||
|
port: 5001
|
||||||
Reference in New Issue
Block a user