2 Commits

Author SHA1 Message Date
Marcel Straub
e702ba20a6 Try other kustomiz.buildOptions for ArgoCd 2025-09-07 15:19:30 +02:00
1a685314be Try fixing ArgoCD with Helm+Kustomize (#3)
Co-authored-by: Marcel Straub <m@straubs.eu>
Reviewed-on: #3
2025-09-07 11:51:36 +02:00
3 changed files with 24 additions and 12 deletions

View File

@@ -14,6 +14,12 @@ Deployment of ArgoCD itself:
kustomize build --enable-helm infra/controllers/argocd | kubectl apply -f -
```
You can uninstall it with the command
```shell
kustomize build --enable-helm infra/controllers/argocd | kubectl delete -f -
```
Configure ArgoCD to pull our setup from this repo:
```shell
@@ -34,4 +40,19 @@ kubectl port-forward svc/argocd-server -n argocd 8080:443
1. CLI Login with previously retrieved password and username ``admin``:
```shell
argocd login localhost:8080 --insecure
```
## Other
### What's keepign a namespace in state deleting?
```shell
kubectl api-resources --verbs=list --namespaced -o name \
| xargs -n 1 kubectl get --show-kind --ignore-not-found -n argocd
```
### Delete ArgoCD applications stuck in dependencies
```shell
kubectl -nargocd patch applications/controllers -p '{"metadata": {"finalizers": null}}' --type merge
```

View File

@@ -4,7 +4,7 @@ metadata:
name: infrastructure
namespace: argocd
labels:
dev.stonegarden: infrastructure
s5b.org: infrastructure
spec:
generators:
- git:
@@ -16,7 +16,7 @@ spec:
metadata:
name: '{{ path.basename }}'
labels:
dev.stonegarden: infrastructure
s5b.org: infrastructure
spec:
project: infrastructure
source:

View File

@@ -7,12 +7,9 @@ configs:
create: true
application.resourceTrackingMethod: annotation+label
admin.enabled: true
kustomize.buildOptions: --enable-helm
kustomize.buildOptions: "--enable-helm --load-restrictor LoadRestrictionsNone --enable-alpha-plugins --enable-exec"
# url: https://gitops.prod.k8.eis-mk8.de.s5b.org
cmp:
create: true
params:
controller.diff.server.side: true
server.insecure: false
@@ -84,12 +81,6 @@ repoServer:
enabled: true
containerSecurityContext:
readOnlyRootFilesystem: true
volumes:
- name: cmp-kustomize-build-with-helm
configMap:
name: argocd-cmp-cm
- name: cmp-tmp
emptyDir: { }
resources:
requests:
cpu: 100m