|
| 1 | +# Default values for ctfd. |
| 2 | +# This is a YAML-formatted file. |
| 3 | +# Declare variables to be passed into your templates. |
| 4 | + |
| 5 | +replicaCount: 1 |
| 6 | + |
| 7 | +image: |
| 8 | + repository: ctfd/ctfd |
| 9 | + tag: 3.5.0 |
| 10 | + pullPolicy: IfNotPresent |
| 11 | + |
| 12 | +# Set K8s securityContext for the CTFd deployment: |
| 13 | +security: |
| 14 | + fsGroup: 1001 |
| 15 | + runAsNonRoot: true |
| 16 | + runAsUser: 1001 |
| 17 | + |
| 18 | +# Bitnami helm redis deployment |
| 19 | +# See bitnami redis values.yaml for more details |
| 20 | +redis: |
| 21 | + # Enable Redis server provided by helm: |
| 22 | + enabled: True |
| 23 | + auth: |
| 24 | + enabled: true |
| 25 | + password: "ChangeMe!123" |
| 26 | + # Redis® architecture. Allowed values: standalone or replication |
| 27 | + architecture: standalone |
| 28 | + |
| 29 | +mariadb: |
| 30 | + # Enable mariadb server provided by helm: |
| 31 | + enabled: True |
| 32 | + # Login credentials: |
| 33 | + auth: |
| 34 | + rootPassword: "ChangeMe!123" |
| 35 | + database: ctfd |
| 36 | + username: "ctfd" |
| 37 | + password: "ChangeMe!123" |
| 38 | + |
| 39 | + replicationUser: "replicate" |
| 40 | + replicationPassword: "ChangeMe!123" |
| 41 | + |
| 42 | + persistence: |
| 43 | + enabled: true |
| 44 | + storageClass: "" |
| 45 | + accessModes: |
| 46 | + - ReadWriteOnce |
| 47 | + size: 15Gi |
| 48 | + |
| 49 | +externalDB: |
| 50 | + # (required if mariadb-galera is disabled) External SQL Database URI. Example: mysql+pymysql://root:ctfd@db/ctfd |
| 51 | + DATABASE_URL: "" |
| 52 | + # (required if redis is disabled) External Redis URI. Example: redis://cache:6379 |
| 53 | + REDIS_URL: "" |
| 54 | + |
| 55 | +env: |
| 56 | + open: |
| 57 | + # Required if more than 1 worker (randomly generate) |
| 58 | + SECRET_KEY: "ChangeMe!123" |
| 59 | + # Amount of CTFd workers |
| 60 | + WORKERS: 5 |
| 61 | + # If behing ingress proxy or nginx: |
| 62 | + REVERSE_PROXY: True |
| 63 | + secret: |
| 64 | + existingSecret: |
| 65 | + # Stores Environment Variable to secret key name mappings |
| 66 | + existingSecretMappings: |
| 67 | + DATABASE_URL: |
| 68 | + REDIS_URL: |
| 69 | + |
| 70 | +# For uploads to the CTFd server (images and other content) |
| 71 | +# Not for DB |
| 72 | +persistence: |
| 73 | + uploads: |
| 74 | + enabled: true |
| 75 | + #ReadWriteMany may be desired here if using multiple CTFd pods |
| 76 | + accessMode: ReadWriteOnce |
| 77 | + size: 10Gi |
| 78 | + labels: {} |
| 79 | + # name: value |
| 80 | + # existingClaim: |
| 81 | + # storageClass: "-" |
| 82 | + |
| 83 | +service: |
| 84 | + type: ClusterIP |
| 85 | + port: 80 |
| 86 | + targetPort: 8000 |
| 87 | + #if service.type = loadbalancer |
| 88 | + # loadBalancerSourceRanges: [] |
| 89 | + # loadBalancerIP: "" |
| 90 | + |
| 91 | +probes: |
| 92 | + liveness: |
| 93 | + initialDelaySeconds: 25 |
| 94 | + periodSeconds: 5 |
| 95 | + timeoutSeconds: 2 |
| 96 | + successThreshold: 1 |
| 97 | + failureThreshold: 5 |
| 98 | + readiness: |
| 99 | + initialDelaySeconds: 20 |
| 100 | + periodSeconds: 5 |
| 101 | + timeoutSeconds: 2 |
| 102 | + successThreshold: 1 |
| 103 | + failureThreshold: 5 |
| 104 | + |
| 105 | +# CTFd ingress: |
| 106 | +ingress: |
| 107 | + enabled: false |
| 108 | + annotations: |
| 109 | + {} |
| 110 | + # kubernetes.io/ingress.class: nginx |
| 111 | + # kubernetes.io/tls-acme: "true" |
| 112 | + hosts: |
| 113 | + - host: ctf.your.domain.com |
| 114 | + path: "/" |
| 115 | + |
| 116 | + tls: [] |
| 117 | + # - secretName: chart-example-tls |
| 118 | + # hosts: |
| 119 | + # - chart-example.local |
| 120 | + |
| 121 | +resources: |
| 122 | + {} |
| 123 | + # limits: |
| 124 | + # cpu: 100m |
| 125 | + # memory: 128Mi |
| 126 | + # requests: |
| 127 | + # cpu: 100m |
| 128 | + # memory: 128Mi |
| 129 | + |
| 130 | +nodeSelector: {} |
| 131 | + |
| 132 | +tolerations: [] |
| 133 | + |
| 134 | +affinity: {} |
| 135 | + |
| 136 | +nameOverride: "" |
| 137 | +fullnameOverride: "" |
| 138 | + |
| 139 | +metrics: |
| 140 | + enabled: false |
| 141 | + image: |
| 142 | + registry: docker.io |
| 143 | + repository: bitnami/mysqld-exporter |
| 144 | + tag: 0.12.1-debian-10-r27 |
| 145 | + pullPolicy: IfNotPresent |
| 146 | + resources: {} |
| 147 | + annotations: |
| 148 | + prometheus.io/scrape: "true" |
| 149 | + prometheus.io/port: "9104" |
| 150 | + |
| 151 | + # Enable this if you're using https://github.com/coreos/prometheus-operator |
| 152 | + serviceMonitor: |
| 153 | + enabled: false |
| 154 | + ## Specify a namespace if needed |
| 155 | + # namespace: monitoring |
| 156 | + # fallback to the prometheus default unless specified |
| 157 | + # interval: 10s |
| 158 | + # scrapeTimeout: 10s |
| 159 | + ## Defaults to what's used if you follow CoreOS [Prometheus Install Instructions](https://github.com/helm/charts/tree/master/stable/prometheus-operator#tldr) |
| 160 | + ## [Prometheus Selector Label](https://github.com/helm/charts/tree/master/stable/prometheus-operator#prometheus-operator-1) |
| 161 | + ## [Kube Prometheus Selector Label](https://github.com/helm/charts/tree/master/stable/prometheus-operator#exporters) |
| 162 | + selector: |
| 163 | + prometheus: kube-prometheus |
0 commit comments