Skip to content

Instantly share code, notes, and snippets.

@safoorsafdar
Last active May 4, 2022 02:04
Show Gist options
  • Save safoorsafdar/5e14a62729e02666c8bf31a2fecfebc7 to your computer and use it in GitHub Desktop.
Save safoorsafdar/5e14a62729e02666c8bf31a2fecfebc7 to your computer and use it in GitHub Desktop.
Example Helm chart for the Mendix application
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for mxchart Application
name: mxchart
version: 0.1.1
# Default values for mxchart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 3
image:
repository: registry.safoorsafdar.com/demo
tag: v0.1
pullPolicy: IfNotPresent
nameOverride: "mx-uat-demo1"
fullnameOverride: ""
service:
type: ClusterIP
port: 8080
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/session-cookie-path: "/demo1"
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
paths:
- /demo1
hosts:
- servicesstg.demo.safoorsafdar.com
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
nodeSelector: {}
tolerations:
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 30
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 30
affinity: {}
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - web-store
# topologyKey: "kubernetes.io/hostname"
# podAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - store
# topologyKey: "kubernetes.io/hostname"
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 9
targetCPUUtilizationPercentage: 50
targetMemoryUtilizationPercentage: 50
ENV_LOGGING_CONFIG: {"Core": "DEBUG"}
ENV_LICENSE_ID: "<License Id>"
ENV_LICENSE_KEY: "<License Key>"
ENV_ADMIN_PASSWORD: "<Mendix admin password>"
ENV_MXRUNTIME_DATABASETYPE: ""
ENV_MXRUNTIME_DATABASEJDBCURL: ""
ENV_MXRUNTIME_DATABASEUSERNAME: ""
ENV_MXRUNTIME_DATABASEPASSWORD: ""
ENV_CERTIFICATE_AUTHORITIES: -|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment