#添加ingress配置# Ingress parametersingress: # -- ingress.enabled Enable the creation of the ingress resource enabled: true # -- ingress.className Name of the IngressClass cluster resource which defines which controller will implement the resource (e.g nginx) className: "nginx-default" # -- ingress.annotations Additional annotations for the Ingress resource annotations: nginx.ingress.kubernetes.io/auth-url: "http://oauth2-proxy.oauth2-proxy.svc.cluster.local/oauth2/auth" nginx.ingress.kubernetes.io/auth-signin: "https://oauth2proxy.hanxux.local/oauth2/start?rd=https%3A%2F%2Fpact-broker.hanxux.local" # -- host Hostname to be used to expose the route to access the Pact Broker host: "pact-broker.hanxux.local" # Ingress TLS parameters tls: # -- ingress.tls.enabled Enable TLS configuration for the host defined at `ingress.host` parameter enabled: true # -- ingress.tls.secretName The name to which the TLS Secret will be called secretName: "pact-broker-tls-cert-secret"
pgsql的password用自定义的:
# PostgreSQL [chart configuration](https://github.com/bitnami/charts/blob/master/bitnami/postgresql/values.yaml)postgresql: # -- Switch to enable or disable the PostgreSQL helm chart enabled: true # The authentication details of the Postgres database auth: # -- Name for a custom user to create username: bn_broker # -- Password for the custom user to create password: "" # -- Name for a custom database to create database: bitnami_broker # -- Name of existing secret to use for PostgreSQL credentials existingSecret: "pact-pg-local-passwd" #这个secretname需要自己指定 # The secret keys Postgres will look for to retrieve the relevant password secretKeys: # -- The key in which Postgres well look for, for the admin password, in the existing Secret adminPasswordKey: passwd # key name要自己指定 # -- The key in which Postgres well look for, for the user password, in the existing Secret userPasswordKey: passwd # key name要自己指定 # -- The key in which Postgres well look for, for the replication password, in the existing Secret replicationPasswordKey: passwd # key name要自己指定
Error: UPGRADE FAILED: cannot patch "pact-broker" with kind Deployment: Deployment.apps "pact-broker" is invalid: [spec.template.spec.containers[0].env[9].valueFrom.secretKeyRef.name: Invalid value: "": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'), spec.template.spec.containers[0].env[9].valueFrom.secretKeyRef.key: Required value]
postgresql: # -- Switch to enable or disable the PostgreSQL helm chart enabled: true # The authentication details of the Postgres database auth: # -- Name for a custom user to create username: bn_broker # -- Password for the custom user to create password: "<password>" # -- Name for a custom database to create database: bitnami_broker # -- Name of existing secret to use for PostgreSQL credentials existingSecret: "pact-broker-postgresql-secret" # The secret keys Postgres will look for to retrieve the relevant password secretKeys: # -- The key in which Postgres well look for, for the admin password, in the existing Secret adminPasswordKey: admin-password # -- The key in which Postgres well look for, for the user password, in the existing Secret userPasswordKey: user-password