Skip to content

Instantly share code, notes, and snippets.

@rafaelnicolett
Last active March 15, 2019 17:34
Show Gist options
  • Save rafaelnicolett/5120dfda1178e86d8d8536c8ff1cdb17 to your computer and use it in GitHub Desktop.
Save rafaelnicolett/5120dfda1178e86d8d8536c8ff1cdb17 to your computer and use it in GitHub Desktop.
# Default values for kong.
# Declare variables to be passed into your templates.
image:
repository: kong
tag: latest
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistrKeySecretName
waitImage:
repository: busybox
tag: latest
# Specify Kong admin and proxy services configurations
admin:
# If you want to specify annotations for the admin service, uncomment the following
# line, add additional or adjust as needed, and remove the curly braces after 'annotations:'.
annotations: {}
# service.beta.kubernetes.io/azure-load-balancer-internal: "true"
# HTTPS traffic on the admin port
# if set to false also set readinessProbe and livenessProbe httpGet scheme's to 'HTTP'
useTLS: false
servicePort: 80
containerPort: 8444
# Kong admin service type
type: ClusterIP
# Set a nodePort which is available
# nodePort: 32444
# Kong admin ingress settings.
ingress:
enabled: false
# tls: sofisa-tls
hosts:
# - kadmin-hml.sofisa.com.br
# - kadmin.hml.infra.sofisa.local
annotations:
# certmanager.k8s.io/cluster-issuer: sofisa-cluster-issuer
kubernetes.io/ingress.class: "nginx"
path: /
proxy:
# If you want to specify annotations for the proxy service, uncomment the following
# line, add additional or adjust as needed, and remove the curly braces after 'annotations:'.
annotations: {}
# HTTP plain-text traffic
http:
enabled: true
servicePort: 80
containerPort: 8000
# Set a nodePort which is available if service type is NodePort
# nodePort: 32080
tls:
enabled: false
servicePort: 443
containerPort: 8443
# Set a nodePort which is available if service type is NodePort
# nodePort: 32443
type: ClusterIP
# Kong proxy ingress settings.
ingress:
enabled: false
# tls: sofisa-tls
hosts:
# - api-hml.sofisa.com.br
# - api.hml.infra.sofisa.local
annotations:
# certmanager.k8s.io/cluster-issuer: sofisa-cluster-issuer
kubernetes.io/ingress.class: "nginx"
path: /
# Set runMigrations to run Kong migrations
runMigrations: true
# Specify Kong configurations
# Kong configurations guide https://getkong.org/docs/latest/configuration/
env:
database: postgres
# If you want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
resources:
limits:
cpu: 100m
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
# readinessProbe for Kong pods
readinessProbe:
httpGet:
path: "/status"
port: admin
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 5
# livenessProbe for Kong pods
livenessProbe:
httpGet:
path: "/status"
port: admin
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 30
successThreshold: 1
failureThreshold: 5
# Affinity for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
# affinity: {}
# Tolerations for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
# Node labels for pod assignment
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
# Annotation to be added to Kong pods
podAnnotations: {}
# Kong pod count
replicaCount: 1
# Kong has a choice of either Postgres or Cassandra as a backend datatstore.
# This chart allows you to choose either of them with the `database.type`
# parameter. Postgres is chosen by default.
# Additionally, this chart allows you to use your own database or spin up a new
# instance by using the `postgres.enabled` or `cassandra.enabled` parameters.
# Enabling both will create both databases in your cluster, but only one
# will be used by Kong based on the `env.database` parameter.
# Postgres is enabled by default.
# Cassandra chart configs
cassandra:
enabled: false
# PostgreSQL chart configs
postgresql:
enabled: true
postgresqlUsername: kong
postgresqlDatabase: kong
service:
port: 5432
# Kong Ingress Controller's primary purpose is to satisfy Ingress resources
# created in k8s. It uses CRDs for more fine grained control over routing and
# for Kong specific configuration.
ingressController:
enabled: false
image:
repository: kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller
tag: 0.3.0
replicaCount: 1
livenessProbe:
failureThreshold: 3
httpGet:
path: "/healthz"
port: 10254
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: "/healthz"
port: 10254
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
installCRDs: true
rbac:
# Specifies whether RBAC resources should be created
create: false
serviceAccount:
# Specifies whether a ServiceAccount should be created
create: true
# The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template
name:
ingressClass: kong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment