A lot of changes that are hard to track

This commit is contained in:
2024-06-22 13:31:21 +02:00
committed by Nikolai Rodionov
parent 14dbe234ea
commit 60e57f3b45
28 changed files with 382 additions and 107 deletions

View File

@ -0,0 +1,14 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: vaultflux
namespace: argo-system
spec:
project: default
source:
repoURL: git@git.badhouseplants.net:badhouseplants/k8s-cluster-config.git
targetRevision: try-argo-and-flux
path: manifests/debug/istio
destination:
server: https://kubernetes.default.svc
namespace: default

View File

@ -7,22 +7,22 @@ metadata:
name: debug
---
# httpbin.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
namespace: debug
spec:
hosts:
- "httpbin.badhouseplants.net"
gateways:
- istio-system/badhouseplants-net
http:
- route:
- destination:
port:
number: 8000
host: httpbin
#apiVersion: networking.istio.io/v1alpha3
#kind: VirtualService
#metadata:
# name: httpbin
# namespace: debug
#spec:
# hosts:
# - "httpbin.badhouseplants.net"
# gateways:
# - istio-system/badhouseplants-net
# http:
# - route:
# - destination:
# port:
# number: 8000
# host: httpbin
---
apiVersion: networking.k8s.io/v1
kind: Ingress
@ -79,3 +79,19 @@ spec:
name: httpbin
ports:
- containerPort: 8000
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ubuntu
namespace: argo-system
spec:
project: default
source:
repoURL: git@git.badhouseplants.net:badhouseplants/k8s-cluster-config.git
targetRevision: try-argo-and-flux
path: manifests/debug/ubuntu
destination:
server: https://kubernetes.default.svc
namespace: default

View File

@ -0,0 +1,52 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: podinfo
namespace: default
spec:
interval: 5m
url: https://git.badhouseplants.net/api/packages/allanger/helm
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: podinfo
namespace: default
spec:
interval: 10m
timeout: 5m
chart:
spec:
chart: vaultwarden
version: '1.2.0'
sourceRef:
kind: HelmRepository
name: podinfo
interval: 5m
releaseName: vaultflux
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
test:
enable: true
driftDetection:
mode: enabled
ignore:
- paths: ["/spec/replicas"]
target:
kind: Deployment
postRenderers:
- kustomize:
patches:
- target:
labelSelector: app.kubernetes.io/instance=vaultflux
patch: |
- op: add
path: "/metadata/labels/argocd.argoproj.io~1instances"
value: vaultflux
values:
replicaCount: 2