argocd: Update application definitions
This commit is contained in:
parent
1c888356fd
commit
d5ce3ff73e
@ -44,16 +44,3 @@ rm -fv id_ecdsa
|
||||
Have Gitea admin reset password for user `argocd` and log in with that account.
|
||||
Add the SSH key for user `argocd` from file `id_ecdsa.pub`.
|
||||
Delete any other SSH keys associated with Gitea user `argocd`.
|
||||
|
||||
|
||||
# Adding applications
|
||||
|
||||
To add application make sure it's manifest is placed as `application.yml` in
|
||||
the relevant namespace:
|
||||
|
||||
```
|
||||
./update.sh
|
||||
kubectl apply -n argocd -f applications --recursive
|
||||
```
|
||||
|
||||
Do not manually add manifests under `applications/`
|
||||
|
23
argocd/applications/elastic-system.yml
Normal file
23
argocd/applications/elastic-system.yml
Normal file
@ -0,0 +1,23 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: elastic-system
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
destination:
|
||||
server: 'https://kubernetes.default.svc'
|
||||
namespace: elastic-system
|
||||
syncPolicy:
|
||||
automated: {}
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
source:
|
||||
repoURL: 'git@git.k-space.ee:k-space/kube.git'
|
||||
path: elastic-system
|
||||
targetRevision: HEAD
|
||||
ignoreDifferences:
|
||||
- group: admissionregistration.k8s.io
|
||||
kind: ValidatingWebhookConfiguration
|
||||
jqPathExpressions:
|
||||
- '.webhooks[]?.clientConfig.caBundle'
|
@ -15,3 +15,8 @@ spec:
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
ignoreDifferences:
|
||||
- group: apiextensions.k8s.io
|
||||
kind: CustomResourceDefinition
|
||||
jqPathExpressions:
|
||||
- '.spec.conversion.webhook.clientConfig.caBundle'
|
||||
|
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
path=$(dirname $(dirname $(realpath $0)))
|
||||
for j in $path/*/application.yml; do
|
||||
app=$(dirname $j)
|
||||
test -f "$app/values.yml" && continue
|
||||
test -f "$app/values.yaml" && continue
|
||||
appname=$(basename $app)
|
||||
cat application.tpl | sed -e "s/foobar/$appname/g" > applications/$appname.yml
|
||||
done
|
Loading…
Reference in New Issue
Block a user