Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(kubenuc apps): Added node selector, sample Zalando PSQL cluster #450

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/kubenuc/bareos/manifests/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
labels:
io.kompose.service: bareos-sd-infra-local
spec:
nodeSelector:
kubernetes.io/hostname: "kubenuc"
containers:
- env:
- name: BAREOS_SD_PASSWORD
Expand Down
7 changes: 6 additions & 1 deletion apps/kubenuc/harbor/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ spec:
secretName: "harbor-ingress-certificate"
type: ingress
database:
internal:
internal:
password: "Y2hhbmdlaXQ="
nodeSelector:
kubernetes.io/hostname: "kubenuc"
jobservice:
nodeSelector:
kubernetes.io/hostname: "kubenuc"
2 changes: 2 additions & 0 deletions apps/kubenuc/jenkins/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
remediation:
retries: 5
values:
nodeSelector:
kubernetes.io/hostname: "kubenuc"
ingress:
annotations: 'cert-manager.io/cluster-issuer: letsencrypt'
enabled: true
Expand Down
6 changes: 6 additions & 0 deletions apps/kubenuc/nextcloud/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
remediation:
retries: 5
values:
nodeSelector:
kubernetes.io/hostname: "kubenuc"
image:
tag: stable-apache
pullPolicy: Always
Expand Down Expand Up @@ -109,6 +111,8 @@ spec:
usernameKey: db-username
passwordKey: db-password
mariadb:
nodeSelector:
kubernetes.io/hostname: "kubenuc"
enabled: true
primary:
persistence:
Expand All @@ -126,6 +130,8 @@ spec:
username: nextcloud
redis:
enabled: true
persistence:
storageClass: longhorn
master:
resources:
limits:
Expand Down
13 changes: 13 additions & 0 deletions apps/kubenuc/postgresql/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: postgresql
namespace: flux-system
spec:
interval: 15m
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/kubenuc/postgresql/manifests
prune: true
16 changes: 16 additions & 0 deletions apps/kubenuc/postgresql/manifests/db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
name: postgresql-nuc-cluster
spec:
teamId: "ddlns"
volume:
size: 10Gi
storageClass: "longhorn"
numberOfInstances: 3
users:
daniele:
- superuser
- createdb
postgresql:
version: "15"
2 changes: 1 addition & 1 deletion apps/kubenuc/postgresql/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ spec:
retries: 6
values:
configKubernetes:
cluster_name_label: postgresql-nuc-cluster
cluster_name_label: ranchernuc
5 changes: 3 additions & 2 deletions apps/kubenuc/sysdig-agent/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ spec:
console_priority: warning
event_priority: warning
file_priority_by_component:
- "conn_mgr:connection_manager: debug"
- "endpoint:cm_ack_handler: debug"
- cm_socket_endpoint: debug
- endpoint: debug
- conn_mgr: debug
prometheus:
enabled: true
prom_service_discovery: true
Expand Down
5 changes: 3 additions & 2 deletions apps/kubenuc/zabbix/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:

zabbixWebService:
enabled: false

zabbixProxy:
enabled: true
replicaCount: 1
Expand Down Expand Up @@ -66,4 +66,5 @@ spec:
ingress:
enabled: false

nodeSelector: {}
nodeSelector:
kubernetes.io/hostname: "kubenuc"
Loading