This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage): introduce storage cluster
- Loading branch information
Showing
34 changed files
with
1,303 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
kubernetes/clusters/meemee/argocd/app-of-apps/application.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# yaml-language-server: $schema=https://deedee-ops.github.io/schemas/argoproj.io/application_v1alpha1.json | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: app-of-apps | ||
namespace: argocd | ||
spec: | ||
destination: | ||
namespace: default | ||
server: https://kubernetes.default.svc | ||
project: default | ||
sources: | ||
- path: kubernetes/clusters/meemee | ||
repoURL: https://github.com/deedee-ops/home-ops.git | ||
targetRevision: master | ||
directory: | ||
recurse: true | ||
include: "*/application.yaml" | ||
exclude: "*/app-of-apps/application.yaml" | ||
syncPolicy: | ||
automated: | ||
allowEmpty: false | ||
selfHeal: false | ||
prune: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
retry: | ||
limit: -1 | ||
backoff: | ||
duration: 10s | ||
factor: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/chart.json | ||
apiVersion: v2 | ||
name: argo-cd | ||
version: 1.0.0 | ||
type: application | ||
dependencies: | ||
- name: argo-cd | ||
version: 5.51.6 | ||
repository: https://argoproj.github.io/argo-helm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
# yaml-language-server: $schema=https://deedee-ops.github.io/schemas/argoproj.io/application_v1alpha1.json | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: argocd | ||
namespace: argocd | ||
spec: | ||
project: default | ||
sources: | ||
- repoURL: https://github.com/deedee-ops/home-ops.git | ||
path: kubernetes/clusters/meemee/argocd/argocd | ||
targetRevision: master | ||
helm: {} | ||
|
||
destination: | ||
namespace: argocd | ||
server: https://kubernetes.default.svc | ||
|
||
syncPolicy: | ||
automated: | ||
allowEmpty: true | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |
43 changes: 43 additions & 0 deletions
43
kubernetes/clusters/meemee/argocd/argocd/templates/prometheus_rule.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# yaml-language-server: $schema=https://deedee-ops.github.io/schemas/monitoring.coreos.com/prometheusrule_v1.json | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: argocd | ||
spec: | ||
groups: | ||
- name: argocd.rules | ||
rules: | ||
- alert: ArgocdServiceNotSynced | ||
expr: argocd_app_info{sync_status!="Synced"} != 0 | ||
for: 15m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: ArgoCD service not synced (instance {{`{{ $labels.instance }}`}}) | ||
description: |- | ||
Service {{`{{ $labels.name }}`}} run by argo is currently not in sync. | ||
VALUE = {{`{{ $value }}`}} | ||
LABELS = {{`{{ $labels }}`}} | ||
- alert: ArgocdServiceUnhealthy | ||
expr: argocd_app_info{health_status!~"Healthy|Suspended"} != 0 | ||
for: 15m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: ArgoCD service unhealthy (instance {{`{{ $labels.instance }}`}}) | ||
description: |- | ||
Service {{`{{ $labels.name }}`}} run by argo is currently not healthy. | ||
VALUE = {{`{{ $value }}`}} | ||
LABELS = {{`{{ $labels }}`}} | ||
- alert: ArgocdImageUpdaterError | ||
expr: increase(argocd_image_updater_k8s_api_errors_total[5m]) > 0 | ||
for: 0m | ||
labels: | ||
severity: warning | ||
annotations: | ||
summary: Argocd image updater failed | ||
description: |- | ||
Argocd image updater failed, check the updater pod logs. | ||
VALUE = {{`{{ $value }}`}} | ||
LABELS = {{`{{ $labels }}`}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
argo-cd: | ||
global: | ||
deploymentStrategy: | ||
type: RollingUpdate | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 999 | ||
runAsGroup: 999 | ||
seccompProfile: | ||
type: RuntimeDefault | ||
configs: | ||
params: | ||
# by default argocd handles SSL termination on its own, which breaks TLS termination on nginx, | ||
# causing infinite loop | ||
"server.insecure": true | ||
repositories: | ||
deedee-ops-home-ops: | ||
name: home-ops | ||
type: git | ||
url: https://github.com/deedee-ops/home-ops.git | ||
|
||
controller: | ||
replicas: 1 | ||
containerSecurityContext: | ||
runAsNonRoot: true | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
capabilities: | ||
drop: | ||
- ALL | ||
metrics: | ||
enabled: true | ||
serviceMonitor: | ||
enabled: true | ||
|
||
dex: | ||
enabled: false | ||
|
||
notifications: | ||
enabled: false | ||
|
||
server: | ||
replicas: 1 | ||
containerSecurityContext: | ||
runAsNonRoot: true | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
capabilities: | ||
drop: | ||
- ALL | ||
autoscaling: | ||
enabled: false | ||
ingress: | ||
enabled: true | ||
ingressClassName: internal | ||
hosts: | ||
- "argocd.nas.rzegocki.dev" | ||
tls: | ||
- hosts: | ||
- "argocd.nas.rzegocki.dev" | ||
metrics: | ||
enabled: true | ||
serviceMonitor: | ||
enabled: true | ||
|
||
repoServer: | ||
replicas: 1 | ||
containerSecurityContext: | ||
runAsNonRoot: true | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
capabilities: | ||
drop: | ||
- ALL | ||
autoscaling: | ||
enabled: false | ||
metrics: | ||
enabled: true | ||
serviceMonitor: | ||
enabled: true | ||
serviceAccount: | ||
automountServiceAccountToken: true | ||
|
||
applicationSet: | ||
enabled: false | ||
|
||
redis: | ||
enabled: true | ||
containerSecurityContext: | ||
runAsNonRoot: true | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
capabilities: | ||
drop: | ||
- ALL | ||
metrics: | ||
enabled: true | ||
serviceMonitor: | ||
enabled: true |
10 changes: 10 additions & 0 deletions
10
kubernetes/clusters/meemee/cert-manager/cert-manager/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/chart.json | ||
apiVersion: v2 | ||
name: cert-manager | ||
version: 1.0.0 | ||
type: application | ||
dependencies: | ||
- name: cert-manager | ||
version: v1.13.3 | ||
repository: https://charts.jetstack.io |
Oops, something went wrong.