Move yc-ecp Gitea and Vault to invest domains
This commit is contained in:
parent
e9ec58cc73
commit
759871c02b
@ -11,7 +11,7 @@ spec:
|
|||||||
branch: master
|
branch: master
|
||||||
secretRef:
|
secretRef:
|
||||||
name: flux-system
|
name: flux-system
|
||||||
url: https://gitea.158-160-200-60.nip.io/sarex/iac.git
|
url: https://gitea.invest.cps.sarex.lonsdaleites.ru/sarex/iac.git
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
57
clusters/yc-ecp/infrastructure/gitea-istio.yaml
Normal file
57
clusters/yc-ecp/infrastructure/gitea-istio.yaml
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: gitea-cert
|
||||||
|
namespace: istio-system
|
||||||
|
spec:
|
||||||
|
dnsNames:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
issuerRef:
|
||||||
|
kind: ClusterIssuer
|
||||||
|
name: letsencrypt-prod
|
||||||
|
secretName: gitea-tls-secret
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1beta1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: gitea-gateway
|
||||||
|
namespace: gateway
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
istio: ingressgateway
|
||||||
|
servers:
|
||||||
|
- hosts:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
number: 80
|
||||||
|
protocol: HTTP
|
||||||
|
- hosts:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
port:
|
||||||
|
name: https
|
||||||
|
number: 443
|
||||||
|
protocol: HTTPS
|
||||||
|
tls:
|
||||||
|
credentialName: gitea-tls-secret
|
||||||
|
mode: SIMPLE
|
||||||
|
---
|
||||||
|
apiVersion: networking.istio.io/v1beta1
|
||||||
|
kind: VirtualService
|
||||||
|
metadata:
|
||||||
|
name: gitea-virt-service
|
||||||
|
namespace: gitea
|
||||||
|
spec:
|
||||||
|
gateways:
|
||||||
|
- gateway/gitea-gateway
|
||||||
|
hosts:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
http:
|
||||||
|
- match:
|
||||||
|
- uri:
|
||||||
|
prefix: /
|
||||||
|
route:
|
||||||
|
- destination:
|
||||||
|
host: gitea
|
||||||
|
port:
|
||||||
|
number: 3000
|
||||||
@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ../../../infrastructure/vault
|
- ../../../infrastructure/vault
|
||||||
|
- ./gitea-istio.yaml
|
||||||
- ./vault-istio.yaml
|
- ./vault-istio.yaml
|
||||||
patches:
|
patches:
|
||||||
- path: ./patches/vault.yaml
|
- path: ./patches/vault.yaml
|
||||||
|
|||||||
@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: istio-system
|
namespace: istio-system
|
||||||
spec:
|
spec:
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- vault.158-160-200-60.nip.io
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
issuerRef:
|
issuerRef:
|
||||||
kind: ClusterIssuer
|
kind: ClusterIssuer
|
||||||
name: letsencrypt-prod
|
name: letsencrypt-prod
|
||||||
@ -21,13 +21,13 @@ spec:
|
|||||||
istio: ingressgateway
|
istio: ingressgateway
|
||||||
servers:
|
servers:
|
||||||
- hosts:
|
- hosts:
|
||||||
- vault.158-160-200-60.nip.io
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
port:
|
port:
|
||||||
name: http
|
name: http
|
||||||
number: 80
|
number: 80
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
- hosts:
|
- hosts:
|
||||||
- vault.158-160-200-60.nip.io
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
port:
|
port:
|
||||||
name: https
|
name: https
|
||||||
number: 443
|
number: 443
|
||||||
@ -45,7 +45,7 @@ spec:
|
|||||||
gateways:
|
gateways:
|
||||||
- gateway/vault-gateway
|
- gateway/vault-gateway
|
||||||
hosts:
|
hosts:
|
||||||
- vault.158-160-200-60.nip.io
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
http:
|
http:
|
||||||
- match:
|
- match:
|
||||||
- uri:
|
- uri:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user