init
This commit is contained in:
parent
fe1e2ea05a
commit
9c1220fbf6
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{$.Release.Name}}-{{$.Values.name}}
|
||||||
|
namespace: {{$.Release.Namespace}}
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: {{tpl $.Values.ingress.host .}}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: "{{ $.Release.Name }}-{{ $.Values.name }}"
|
||||||
|
port:
|
||||||
|
number: {{ $.Values.port }}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: {{$.Release.Name}}-cors
|
||||||
|
namespace: {{$.Release.Namespace}}
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
accessControlAllowMethods:
|
||||||
|
- "GET"
|
||||||
|
- "POST"
|
||||||
|
- "PUT"
|
||||||
|
- "DELETE"
|
||||||
|
- "OPTIONS"
|
||||||
|
accessControlAllowHeaders:
|
||||||
|
- "Content-Type"
|
||||||
|
- "Authorization"
|
||||||
|
accessControlAllowOriginList:
|
||||||
|
- "*" # или конкретный домен
|
||||||
|
accessControlMaxAge: 100
|
||||||
|
addVaryHeader: true
|
||||||
@ -10,6 +10,8 @@ image:
|
|||||||
name: null
|
name: null
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
version: ''
|
version: ''
|
||||||
|
ingress:
|
||||||
|
host: 'devspace.xx'
|
||||||
name: agent
|
name: agent
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
Loading…
x
Reference in New Issue
Block a user