|
| 1 | +# Default values for deployment, this is necessary because we're using a unified helm subchart |
| 2 | +deployment: |
| 3 | + # This is the name of the deployment, this is used in a _lot_ of places in the helm charts so lets just specify it |
| 4 | + name: docs-hashnode-ssl-proxy |
| 5 | + |
| 6 | + replicaCount: 1 |
| 7 | + |
| 8 | + # This runs on Linux only |
| 9 | + nodeSelector: |
| 10 | + kubernetes.io/os: linux |
| 11 | + |
| 12 | + # Where our ECR registry is and what tag to use, along with the command/arguments if desired. See helm chart |
| 13 | + image: |
| 14 | + repository: andrewfarley/docker-kubernetes-apache-proxy |
| 15 | + tag: latest |
| 16 | + |
| 17 | + # livenessProbes are used to determine when to restart a container |
| 18 | + # Only specify the values you need to override from the defaults |
| 19 | + livenessProbe: |
| 20 | + enabled: false |
| 21 | + initialDelaySeconds: 30 |
| 22 | + path: /robots.txt |
| 23 | + |
| 24 | + # readinessProbes are used to determine when a container is ready to start accepting traffic |
| 25 | + # Only specify the values you need to override from the defaults |
| 26 | + readinessProbe: |
| 27 | + enabled: false |
| 28 | + initialDelaySeconds: 1 |
| 29 | + path: /robots.txt |
| 30 | + |
| 31 | + # deployment container resource requests/limits |
| 32 | + # this is set VERY low by default, to be aggressive above resource limiting, please override this if necessary |
| 33 | + # Note: Limits are HARD Limits |
| 34 | + # Requests are "soft" limits and are what affects HPA (autoscaling) aggressiveness if HPA is enabled |
| 35 | + resources: |
| 36 | + limits: |
| 37 | + cpu: 1 |
| 38 | + memory: 100Mi |
| 39 | + requests: |
| 40 | + cpu: 50m |
| 41 | + memory: 100Mi |
| 42 | + |
| 43 | + # Enable autoscaling (prod only) |
| 44 | + autoscaling: |
| 45 | + enabled: false |
| 46 | + minReplicas: 3 |
| 47 | + |
| 48 | + ingress: |
| 49 | + enabled: true |
| 50 | + ingressClassName: "infrastructure" |
| 51 | + annotations: |
| 52 | + # support large file uploads |
| 53 | + nginx.ingress.kubernetes.io/proxy-body-size: "1000m" |
| 54 | + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" |
| 55 | + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" |
| 56 | + hosts: |
| 57 | + - host: REPLACE_HOSTNAME_IN_ENV_VALUES |
| 58 | + paths: |
| 59 | + - /(/+)?(.*) |
| 60 | + |
| 61 | + volumes: |
| 62 | + - name: config-volume |
| 63 | + configMap: |
| 64 | + name: docs-hashnode-ssl-proxy |
| 65 | + |
| 66 | + volumeMounts: |
| 67 | + - name: config-volume |
| 68 | + mountPath: /usr/local/apache2/conf/kubernetes |
0 commit comments