Skip to content

Commit

Permalink
refactoring exodev.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wejdross committed Dec 17, 2024
1 parent bd1be73 commit e3d3f37
Show file tree
Hide file tree
Showing 41 changed files with 2,664 additions and 639 deletions.
113 changes: 14 additions & 99 deletions tests/exodev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ parameters:
salesOrder: ST10120
vshn:
enableCronjobs: false
meteringRules: true
meteringRules: false
enableMockOrgInfo: true
instanceUOM: uom_uom_45_1e112771
network_policies:
Expand All @@ -43,8 +43,8 @@ parameters:
cloudZone: ${global:appuio_metered_billing_zone_label_map:${cluster:name}}

slos:
enabled: true
alertsEnabled: true
enabled: false
alertsEnabled: false
sli_exporter:
enableMaintenceObserver: false
sla_reporter:
Expand All @@ -54,7 +54,7 @@ parameters:
controller:
enabled: true
postgres:
enabled: true
enabled: false
providers:
exoscale:
enabled: true
Expand All @@ -65,123 +65,38 @@ parameters:
helm:
enabled: true
minio:
enabled: true
defaultProviderConfig:
minioURL: http://minio-server.minio.svc:9000/
credentials:
apiSecretRef:
name: minio-secret
namespace: syn-crossplane
enabled: false

apiserver:
enabled: true
env:
APPCAT_HANDLER_ENABLED: "true"
VSHN_POSTGRES_BACKUP_HANDLER_ENABLED: "true"
VSHN_REDIS_BACKUP_HANDLER_ENABLED: "true"

services:
emailAlerting:
enabled: true
smtpPassword: "?{vaultkv:__shared__/__shared__/mailgun/smtp_password}"
enabled: false
vshn:
enabled: false
externalDatabaseConnectionsEnabled: true
mariadb:
enabled: true
enabled: false
keycloak:
enabled: true
additionalInputs:
# https://vault-prod.syn.vshn.net/ui/vault/secrets/clusters%2Fkv/kv/__shared__%2F__shared__%2Fappcat/details?version=1
registry_username: ""
registry_password: ""
ingress_annotations: |
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
cert-manager.io/cluster-issuer: letsencrypt-staging
enabled: false
nextcloud:
enabled: true
additionalInputs:
collaboraCPULimit: "1"
collaboraCPURequests: 250m
collaboraMemoryLimit: 1Gi # during my tests I was able to force collabora to use ~800Mi
collaboraMemoryRequests: 256Mi
ingress_annotations: |
cert-manager.io/cluster-issuer: letsencrypt-staging
enabled: false
postgres:
sgNamespace: stackgres
bucket_region: 'ch-gva-2'
bucket_endpoint: 'http://minio-server.minio:9000'
additionalInputs:
loadbalancerAnnotations: |
foo: bar
plans:
standard-8:
enabled: false
plus-2:
size: ${appcat:services:vshn:postgres:plans:standard-2:size}
scheduling:
nodeSelector:
appuio.io/node-class: "plus"
note: "Will be scheduled on APPUiO Cloud plus nodes"
plus-4:
size: ${appcat:services:vshn:postgres:plans:standard-4:size}
scheduling:
nodeSelector:
appuio.io/node-class: "plus"
note: "Will be scheduled on APPUiO Cloud plus nodes"
enabled: false
redis:
enabled: true
plans:
standard-8:
enabled: false
plus-512m:
size: ${appcat:services:vshn:redis:plans:standard-512m:size}
scheduling:
nodeSelector:
appuio.io/node-class: "plus"
note: "Will be scheduled on APPUiO Cloud plus nodes"
plus-1:
size: ${appcat:services:vshn:redis:plans:standard-1:size}
scheduling:
nodeSelector:
appuio.io/node-class: "plus"
note: "Will be scheduled on APPUiO Cloud plus nodes"
plus-4:
size: ${appcat:services:vshn:redis:plans:standard-4:size}
scheduling:
nodeSelector:
appuio.io/node-class: "plus"
note: "Will be scheduled on APPUiO Cloud plus nodes"
plus-2:
size: ${appcat:services:vshn:redis:plans:standard-2:size}
scheduling:
nodeSelector:
appuio.io/node-class: "plus"
note: "Will be scheduled on APPUiO Cloud plus nodes"
enabled: false
minio:
enabled: false
instances:
- name: minio
namespace: syn-appcat
spec:
parameters:
service:
mode: standalone
size:
disk: 20Gi
writeConnectionSecretToRef:
name: minio-cluster-credentials

generic:
objectstorage:
enabled: true

defaultComposition: minio
defaultComposition: exoscale
compositions:
exoscale:
enabled: false
enabled: true
cloudscale:
enabled: false
minio:
enabled: true
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ spec:
}} has failed.
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/AppCatBackupJobError.html
summary: AppCat service backup failed.
expr: kube_job_failed{job_name=~".*backup.*", namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
> 0
expr: kube_job_failed{job_name=~".*backup.*", namespace=~"vshn-()-.*"} >
0
for: 1m
labels:
severity: warning
Expand Down
11 changes: 4 additions & 7 deletions tests/golden/exodev/appcat/appcat/10_appcat_ha_monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ spec:
}} has less replicas than expected.
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableDeploymentWarning.html
summary: AppCat service instance has unavailable pods.
expr: kube_deployment_status_replicas{namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
> 1 AND kube_deployment_status_replicas{namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
- kube_deployment_status_replicas_ready{namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
> 0
expr: kube_deployment_status_replicas{namespace=~"vshn-()-.*"} > 1 AND kube_deployment_status_replicas{namespace=~"vshn-()-.*"}
- kube_deployment_status_replicas_ready{namespace=~"vshn-()-.*"} > 0
for: 1m
labels:
severity: warning
Expand All @@ -27,9 +25,8 @@ spec:
$labels.namespace }} has less replicas than expected.
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableStatefulsetWarning.html
summary: AppCat service instance has unavailable pods.
expr: kube_statefulset_status_replicas{namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
> 1 AND kube_statefulset_status_replicas{namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
- kube_statefulset_status_replicas_ready{namespace=~"vshn-(keycloak|mariadb|nextcloud|postgresql|redis)-.*"}
expr: kube_statefulset_status_replicas{namespace=~"vshn-()-.*"} > 1 AND
kube_statefulset_status_replicas{namespace=~"vshn-()-.*"} - kube_statefulset_status_replicas_ready{namespace=~"vshn-()-.*"}
> 0
for: 1m
labels:
Expand Down
109 changes: 0 additions & 109 deletions tests/golden/exodev/appcat/appcat/10_provider_minio.yaml

This file was deleted.

81 changes: 0 additions & 81 deletions tests/golden/exodev/appcat/appcat/10_provider_sql.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- ENDPOINT_URL
- BUCKET_NAME
defaultCompositionRef:
name: minio.objectbuckets.appcat.vshn.io
name: exoscale.objectbuckets.appcat.vshn.io
group: appcat.vshn.io
names:
kind: XObjectBucket
Expand Down
Loading

0 comments on commit e3d3f37

Please sign in to comment.