From 5751990e1ab7ddda4ad2e1014ac7197388e8ff71 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sun, 21 Mar 2021 15:35:32 +0200 Subject: [PATCH] chart: Rearrange values Signed-off-by: Stefan Prodan --- charts/podinfo/values-prod.yaml | 65 ++++++++++++++++++++++++--------- charts/podinfo/values.yaml | 39 +++++++++++--------- 2 files changed, 70 insertions(+), 34 deletions(-) diff --git a/charts/podinfo/values-prod.yaml b/charts/podinfo/values-prod.yaml index 59e1bac..67f2511 100644 --- a/charts/podinfo/values-prod.yaml +++ b/charts/podinfo/values-prod.yaml @@ -1,15 +1,22 @@ -# Prod values for podinfo. +# Production values for podinfo. +# Includes Redis deployment and memory limits. replicaCount: 1 logLevel: info backend: #http://backend-podinfo:9898/echo backends: [] +image: + repository: ghcr.io/stefanprodan/podinfo + tag: 5.1.4 + pullPolicy: IfNotPresent + ui: color: "#34577c" message: "" logo: "" +# failure conditions faults: delay: false error: false @@ -18,16 +25,10 @@ faults: testFail: false testTimeout: false -h2c: - enabled: false - -image: - repository: ghcr.io/stefanprodan/podinfo - tag: 5.1.4 - pullPolicy: IfNotPresent - +# Kubernetes Service settings service: enabled: true + annotations: {} type: ClusterIP metricsPort: 9797 httpPort: 9898 @@ -36,6 +37,35 @@ service: grpcService: podinfo nodePort: 31198 +# enable h2c protocol (non-TLS version of HTTP/2) +h2c: + enabled: false + +# enable tls on the podinfo service +tls: + enabled: false + # the name of the secret used to mount the certificate key pair + secretName: + # the path where the certificate key pair will be mounted + certPath: /data/cert + # the port used to host the tls endpoint on the service + port: 9899 + # the port used to bind the tls port to the host + # NOTE: requires privileged container with NET_BIND_SERVICE capability -- this is useful for testing + # in local clusters such as kind without port forwarding + hostPort: + +# create a certificate manager certificate (cert-manager required) +certificate: + create: false + # the issuer used to issue the certificate + issuerRef: + kind: ClusterIssuer + name: self-signed + # the hostname / subject alternative names for the certificate + dnsNames: + - podinfo + # metrics-server add-on required hpa: enabled: true @@ -62,14 +92,6 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: -linkerd: - profile: - enabled: false - -serviceMonitor: - enabled: false - interval: 15s - ingress: enabled: false annotations: {} @@ -83,6 +105,15 @@ ingress: # hosts: # - chart-example.local +linkerd: + profile: + enabled: false + +# create Prometheus Operator monitor +serviceMonitor: + enabled: false + interval: 15s + resources: limits: memory: 256Mi diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index 42ae505..afdd6d0 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -5,11 +5,17 @@ logLevel: info backend: #http://backend-podinfo:9898/echo backends: [] +image: + repository: ghcr.io/stefanprodan/podinfo + tag: 5.1.4 + pullPolicy: IfNotPresent + ui: color: "#34577c" message: "" logo: "" +# failure conditions faults: delay: false error: false @@ -18,16 +24,10 @@ faults: testFail: false testTimeout: false -h2c: - enabled: false - -image: - repository: ghcr.io/stefanprodan/podinfo - tag: 5.1.4 - pullPolicy: IfNotPresent - +# Kubernetes Service settings service: enabled: true + annotations: {} type: ClusterIP metricsPort: 9797 httpPort: 9898 @@ -40,6 +40,10 @@ service: # in local clusters such as kind without port forwarding hostPort: +# enable h2c protocol (non-TLS version of HTTP/2) +h2c: + enabled: false + # enable tls on the podinfo service tls: enabled: false @@ -54,7 +58,7 @@ tls: # in local clusters such as kind without port forwarding hostPort: -# create a certificate manager certificate +# create a certificate manager certificate (cert-manager required) certificate: create: false # the issuer used to issue the certificate @@ -91,14 +95,6 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: -linkerd: - profile: - enabled: false - -serviceMonitor: - enabled: false - interval: 15s - ingress: enabled: false annotations: {} @@ -112,6 +108,15 @@ ingress: # hosts: # - chart-example.local +linkerd: + profile: + enabled: false + +# create Prometheus Operator monitor +serviceMonitor: + enabled: false + interval: 15s + resources: limits: requests: