update capacitor with ingress
This commit is contained in:
@@ -1,14 +1,3 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: OCIRepository
|
||||
metadata:
|
||||
name: capacitor
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 12h
|
||||
url: oci://ghcr.io/gimlet-io/capacitor-manifests
|
||||
ref:
|
||||
semver: ">=0.1.0"
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
@@ -18,10 +7,43 @@ spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: flux-system
|
||||
wait: true
|
||||
targetNamespace: ingress-nginx
|
||||
path: ./kubernetes/apps/capacitor/app
|
||||
prune: true
|
||||
path: "./"
|
||||
sourceRef:
|
||||
kind: OCIRepository
|
||||
name: capacitor
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
patches:
|
||||
- target:
|
||||
kind: (Service|Deployment)
|
||||
name: capacitor
|
||||
namespace: flux-system
|
||||
patch: |
|
||||
- op: replace
|
||||
path: "/metadata/labels/app.kubernetes.io~1managed-by"
|
||||
value: Flux
|
||||
- op: remove
|
||||
path: "/metadata/labels/helm.sh~1chart"
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: capacitor-ingress
|
||||
namespace: flux-system
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: capacitor
|
||||
port:
|
||||
number: 9100
|
||||
|
||||
Reference in New Issue
Block a user