74 lines
1.4 KiB
YAML
74 lines
1.4 KiB
YAML
replicaCount: 1
|
|
|
|
image:
|
|
repository: nginx
|
|
pullPolicy: IfNotPresent
|
|
tag: "latest"
|
|
|
|
puller:
|
|
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
|