Migrate Istio and Vault configurations to separate yc-ecp infrastructure directories with updated HelmRelease and Kustomization files.
This commit is contained in:
parent
3bb9514f1e
commit
6e94f826c3
@ -1,57 +0,0 @@
|
|||||||
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
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- ../../../infrastructure/vault
|
|
||||||
- ./gitea-istio.yaml
|
|
||||||
- ./vault-istio.yaml
|
|
||||||
patches:
|
|
||||||
- path: ./patches/vault.yaml
|
|
||||||
target:
|
|
||||||
group: helm.toolkit.fluxcd.io
|
|
||||||
version: v2
|
|
||||||
kind: HelmRelease
|
|
||||||
name: vault
|
|
||||||
namespace: vault
|
|
||||||
@ -1,57 +0,0 @@
|
|||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
name: vault-cert
|
|
||||||
namespace: istio-system
|
|
||||||
spec:
|
|
||||||
dnsNames:
|
|
||||||
- vault.invest.cps.sarex.lonsdaleites.ru
|
|
||||||
issuerRef:
|
|
||||||
kind: ClusterIssuer
|
|
||||||
name: letsencrypt-prod
|
|
||||||
secretName: vault-tls
|
|
||||||
---
|
|
||||||
apiVersion: networking.istio.io/v1beta1
|
|
||||||
kind: Gateway
|
|
||||||
metadata:
|
|
||||||
name: vault-gateway
|
|
||||||
namespace: gateway
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
istio: ingressgateway
|
|
||||||
servers:
|
|
||||||
- hosts:
|
|
||||||
- vault.invest.cps.sarex.lonsdaleites.ru
|
|
||||||
port:
|
|
||||||
name: http
|
|
||||||
number: 80
|
|
||||||
protocol: HTTP
|
|
||||||
- hosts:
|
|
||||||
- vault.invest.cps.sarex.lonsdaleites.ru
|
|
||||||
port:
|
|
||||||
name: https
|
|
||||||
number: 443
|
|
||||||
protocol: HTTPS
|
|
||||||
tls:
|
|
||||||
credentialName: vault-tls
|
|
||||||
mode: SIMPLE
|
|
||||||
---
|
|
||||||
apiVersion: networking.istio.io/v1beta1
|
|
||||||
kind: VirtualService
|
|
||||||
metadata:
|
|
||||||
name: vault-virt-service
|
|
||||||
namespace: vault
|
|
||||||
spec:
|
|
||||||
gateways:
|
|
||||||
- gateway/vault-gateway
|
|
||||||
hosts:
|
|
||||||
- vault.invest.cps.sarex.lonsdaleites.ru
|
|
||||||
http:
|
|
||||||
- match:
|
|
||||||
- uri:
|
|
||||||
prefix: /
|
|
||||||
route:
|
|
||||||
- destination:
|
|
||||||
host: vault-vault-contour.vault.svc.cluster.local
|
|
||||||
port:
|
|
||||||
number: 8200
|
|
||||||
@ -3,4 +3,7 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- ./flux-system
|
- ./flux-system
|
||||||
- ./helm-repositories.yaml
|
- ./helm-repositories.yaml
|
||||||
- ./infrastructure
|
|
||||||
|
# infrastructure
|
||||||
|
- ../../infrastructure/istio-config/yc-ecp
|
||||||
|
- ../../infrastructure/vault/yc-ecp
|
||||||
|
|||||||
77
infrastructure/istio-config/yc-ecp/istio-config.yaml
Normal file
77
infrastructure/istio-config/yc-ecp/istio-config.yaml
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: istio-config
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
# istio в yc-ecp поставлен istio-operator, HelmRelease istio-base/istiod/ingressgateway
|
||||||
|
# в кластере нет — с зависимостями из base релиз никогда не станет Ready
|
||||||
|
dependsOn: []
|
||||||
|
interval: 5m
|
||||||
|
timeout: 10m
|
||||||
|
values:
|
||||||
|
global:
|
||||||
|
env: yc-ecp
|
||||||
|
environments:
|
||||||
|
yc-ecp:
|
||||||
|
namespaces: []
|
||||||
|
certManager:
|
||||||
|
clusterIssuers: {}
|
||||||
|
certificates:
|
||||||
|
gitea-tls-secret:
|
||||||
|
namespace: istio-system
|
||||||
|
dnsNames:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
kind: ClusterIssuer
|
||||||
|
vault-tls:
|
||||||
|
namespace: istio-system
|
||||||
|
dnsNames:
|
||||||
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
kind: ClusterIssuer
|
||||||
|
istio:
|
||||||
|
gateways:
|
||||||
|
gitea:
|
||||||
|
name: gitea-gateway
|
||||||
|
namespace: gateway
|
||||||
|
servers:
|
||||||
|
- hosts:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
tls:
|
||||||
|
credentialName: gitea-tls-secret
|
||||||
|
vault:
|
||||||
|
name: vault-gateway
|
||||||
|
namespace: gateway
|
||||||
|
servers:
|
||||||
|
- hosts:
|
||||||
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
tls:
|
||||||
|
credentialName: vault-tls
|
||||||
|
virtualServices:
|
||||||
|
gitea:
|
||||||
|
name: gitea-virt-service
|
||||||
|
namespace: gitea
|
||||||
|
hosts:
|
||||||
|
- gitea.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
gateways:
|
||||||
|
- gateway/gitea-gateway
|
||||||
|
routes:
|
||||||
|
- path:
|
||||||
|
prefix: /
|
||||||
|
service: gitea.gitea.svc.cluster.local
|
||||||
|
port: 3000
|
||||||
|
vault:
|
||||||
|
name: vault-virt-service
|
||||||
|
namespace: vault
|
||||||
|
hosts:
|
||||||
|
- vault.invest.cps.sarex.lonsdaleites.ru
|
||||||
|
gateways:
|
||||||
|
- gateway/vault-gateway
|
||||||
|
routes:
|
||||||
|
- path:
|
||||||
|
prefix: /
|
||||||
|
service: vault-vault-contour.vault.svc.cluster.local
|
||||||
|
port: 8200
|
||||||
6
infrastructure/istio-config/yc-ecp/kustomization.yaml
Normal file
6
infrastructure/istio-config/yc-ecp/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: istio-config.yaml
|
||||||
6
infrastructure/vault/yc-ecp/kustomization.yaml
Normal file
6
infrastructure/vault/yc-ecp/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: vault.yaml
|
||||||
Loading…
Reference in New Issue
Block a user