Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wermarter committed Dec 27, 2024
1 parent 9d8de28 commit 0d595e6
Show file tree
Hide file tree
Showing 15 changed files with 105 additions and 9 deletions.
2 changes: 1 addition & 1 deletion k8s/dependencies/2-argo/get_admin_password.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kubectl=/snap/bin/kubectl

$kubectl -n core get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
$kubectl -n argo get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
2 changes: 0 additions & 2 deletions k8s/dependencies/3-longhorn/.gitignore

This file was deleted.

6 changes: 6 additions & 0 deletions k8s/dependencies/3-longhorn/argo-down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

kubectl=/snap/bin/kubectl

$kubectl delete -f $SCRIPT_DIR/argocd-application.yaml
6 changes: 6 additions & 0 deletions k8s/dependencies/3-longhorn/argo-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

kubectl=/snap/bin/kubectl

$kubectl apply -f $SCRIPT_DIR/argocd-application.yaml
20 changes: 20 additions & 0 deletions k8s/dependencies/3-longhorn/argocd-application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn
namespace: argo
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: longhorn-system
server: https://kubernetes.default.svc
project: default
source:
path: k8s/dependencies/3-longhorn
repoURL: https://github.com/wermarter/diut
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
6 changes: 6 additions & 0 deletions k8s/dependencies/4-prometheus-stack/argo-down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

kubectl=/snap/bin/kubectl

$kubectl delete -f $SCRIPT_DIR/argocd-application.yaml
6 changes: 6 additions & 0 deletions k8s/dependencies/4-prometheus-stack/argo-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

kubectl=/snap/bin/kubectl

$kubectl apply -f $SCRIPT_DIR/argocd-application.yaml
20 changes: 20 additions & 0 deletions k8s/dependencies/4-prometheus-stack/argocd-application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: prometheus-stack
namespace: argo
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: observability
server: https://kubernetes.default.svc
project: default
source:
path: k8s/dependencies/4-prometheus-stack
repoURL: https://github.com/wermarter/diut
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
2 changes: 1 addition & 1 deletion k8s/dependencies/4-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kube-prometheus-stack:
fullnameOverride: prometheus-stack

crds:
enabled: true
enabled: false
# issue with argoCD sync with long annotations -> set 'true' first times
# manual sync UI selecting only out-of-sync resources
# set false
Expand Down
4 changes: 2 additions & 2 deletions k8s/dependencies/6-redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ redis:
disableCommands: []
resourcesPreset: 'medium'
persistence:
storageClass:
storageClass: longhorn
size: 5Gi
replica:
disableCommands: []
replicaCount: 3
persistence:
storageClass:
storageClass: longhorn
size: 5Gi
resourcesPreset: 'medium'
autoscaling:
Expand Down
6 changes: 6 additions & 0 deletions k8s/dependencies/7-envoy-gateway/argo-down.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

kubectl=/snap/bin/kubectl

$kubectl delete -f $SCRIPT_DIR/argocd-application.yaml
6 changes: 6 additions & 0 deletions k8s/dependencies/7-envoy-gateway/argo-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

kubectl=/snap/bin/kubectl

$kubectl apply -f $SCRIPT_DIR/argocd-application.yaml
20 changes: 20 additions & 0 deletions k8s/dependencies/7-envoy-gateway/argocd-application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: envoy-gateway
namespace: argo
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: envoy-gateway-system
server: https://kubernetes.default.svc
project: default
source:
path: k8s/dependencies/7-envoy-gateway
repoURL: https://github.com/wermarter/diut
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
1 change: 1 addition & 0 deletions k8s/dependencies/8-minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ minio:
- name: loki-chunks
- name: loki-ruler
- name: loki-admin
- name: tempo
7 changes: 4 additions & 3 deletions k8s/setup/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ mv ./k3s-ansible/kubeconfig ~/.kube/config

kubectl=/snap/bin/kubectl

$kubectl create ns core
$kubectl create ns argo
$kubectl create ns observability
$kubectl create ns diut
$kubectl create ns diut-hcdc
$kubectl create ns longhorn-system
$kubectl create ns envoy-gateway-system
$kubectl create ns infra
$kubectl create ns hcdc

0 comments on commit 0d595e6

Please sign in to comment.