Try other kustomiz.buildOptions for ArgoCd #4
@@ -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
|
||||
```
|
||||
@@ -7,17 +7,8 @@ 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
|
||||
plugins:
|
||||
kustomize-build-with-helm:
|
||||
generate:
|
||||
command: [ sh, -c ]
|
||||
args: [ kustomize build --enable-helm ]
|
||||
|
||||
params:
|
||||
controller.diff.server.side: true
|
||||
@@ -90,40 +81,12 @@ 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
|
||||
memory: 256Mi
|
||||
limits:
|
||||
memory: 2Gi
|
||||
extraContainers:
|
||||
- name: kustomize-build-with-helm
|
||||
command:
|
||||
- argocd-cmp-server
|
||||
image: '{{ default .Values.global.image.repository .Values.repoServer.image.repository }}:{{ default (include "argo-cd.defaultTag" .) .Values.repoServer.image.tag }}'
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 999
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
capabilities:
|
||||
drop: [ ALL ]
|
||||
volumeMounts:
|
||||
- name: plugins
|
||||
mountPath: /home/argocd/cmp-server/plugins
|
||||
- name: cmp-kustomize-build-with-helm
|
||||
mountPath: /home/argocd/cmp-server/config/plugin.yaml
|
||||
subPath: kustomize-build-with-helm.yaml
|
||||
- mountPath: /tmp
|
||||
name: cmp-tmp
|
||||
|
||||
applicationSet:
|
||||
replicas: 2
|
||||
|
||||
Reference in New Issue
Block a user