68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
replicaCount: 1
|
|
|
|
image:
|
|
repository: nginx
|
|
pullPolicy: IfNotPresent
|
|
tag: "latest"
|
|
|
|
service:
|
|
type: ClusterIP
|
|
port: 80
|
|
|
|
ingress:
|
|
enabled: true
|
|
className: nginx
|
|
hosts:
|
|
- host: chart-example.local
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
|
|
persistence:
|
|
enabled: true
|
|
accessMode: ReadWriteOnce
|
|
size: 1Gi
|
|
storageClass: ""
|
|
|
|
|
|
ingress:
|
|
tls:
|
|
enabled: true
|
|
secretName: chart-example-tls
|
|
hosts:
|
|
- chart-example.local
|
|
annotations: {}
|
|
# kubernetes.io/ingress.class: nginx
|
|
# kubernetes.io/tls-acme: "true"
|
|
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
|
|
|
|
# Environment variables to be passed to the container
|
|
env:
|
|
# Direct environment variables
|
|
plain:
|
|
- name: APP_NAME
|
|
value: "my-app"
|
|
- name: PORT
|
|
value: "8080"
|
|
|
|
# Environment variables from ConfigMaps
|
|
configMapRefs:
|
|
- name: app-config # Reference an existing ConfigMap
|
|
optional: true # Make it optional
|
|
|
|
configMapKeys:
|
|
- name: CONFIG_KEY
|
|
configMapName: app-config
|
|
key: config.key
|
|
|
|
# Environment variables from Secrets
|
|
secretRefs:
|
|
- name: app-secrets # Reference an existing Secret
|
|
optional: true # Make it optional
|
|
|
|
secretKeys:
|
|
- name: API_KEY
|
|
secretName: app-secrets
|
|
key: api.key
|