mirror of
https://github.com/helm/charts.git
synced 2026-08-21 13:28:13 +00:00
* Added option to provide a different port instead of 443 Signed-off-by: Joao Marcal <joao.marcal12@gmail.com> * Fixed a bug introduced in the last commit and added some helpfull comments to values.yaml Signed-off-by: Joao Marcal <joao.marcal12@gmail.com> * Removed trailing space Signed-off-by: Joao Marcal <joao.marcal12@gmail.com>
165 lines
4.8 KiB
YAML
165 lines
4.8 KiB
YAML
# Default values for opa.
|
|
# -----------------------
|
|
#
|
|
# The 'opa' key embeds an OPA configuration file. See
|
|
# https://www.openpolicyagent.org/docs/configuration.html for more details.
|
|
# If no default config wanted just set opa: false
|
|
opa:
|
|
services:
|
|
controller:
|
|
url: "https://www.openpolicyagent.org"
|
|
bundle:
|
|
service: controller
|
|
name: "helm-kubernetes-quickstart"
|
|
default_decision: "/helm_kubernetes_quickstart/main"
|
|
|
|
# Setup the webhook using cert-manager
|
|
certManager:
|
|
enabled: false
|
|
|
|
# To enforce mutating policies, change to MutatingWebhookConfiguration.
|
|
admissionControllerKind: ValidatingWebhookConfiguration
|
|
|
|
# To _fail closed_ on failures, change to Fail. During initial testing, we
|
|
# recommend leaving the failure policy as Ignore.
|
|
admissionControllerFailurePolicy: Ignore
|
|
|
|
# To restrict the kinds of operations and resources that are subject to OPA
|
|
# policy checks, see the settings below. By default, all resources and
|
|
# operations are subject to OPA policy checks.
|
|
admissionControllerRules:
|
|
- operations: ["*"]
|
|
apiGroups: ["*"]
|
|
apiVersions: ["*"]
|
|
resources: ["*"]
|
|
|
|
# Controls a PodDisruptionBudget for the OPA pod. Suggested use if having opa
|
|
# always running for admission control is important
|
|
podDisruptionBudget:
|
|
enabled: false
|
|
minAvailable: 1
|
|
# maxUnavailable: 1
|
|
|
|
# The helm Chart will automatically generate a CA and server certificate for
|
|
# the OPA. If you want to supply your own certificates, set the field below to
|
|
# false and add the PEM encoded CA certificate and server key pair below.
|
|
#
|
|
# WARNING: The common name name in the server certificate MUST match the
|
|
# hostname of the service that exposes the OPA to the apiserver. For example.
|
|
# if the service name is created in the "default" nanamespace with name "opa"
|
|
# the common name MUST be set to "opa.default.svc".
|
|
#
|
|
# If the common name is not set correctly, the apiserver will refuse to
|
|
# communicate with the OPA.
|
|
generateAdmissionControllerCerts: true
|
|
admissionControllerCA: ""
|
|
admissionControllerCert: ""
|
|
admissionControllerKey: ""
|
|
|
|
authz:
|
|
# Disable if you don't want authorization.
|
|
# Mostly useful for debugging.
|
|
enabled: true
|
|
|
|
# Docker image and tag to deploy.
|
|
image: openpolicyagent/opa
|
|
imageTag: 0.10.7
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
# Port to which the opa pod will bind itself
|
|
# NOTE IF you use a different port make sure it maches the ones in the readinessProbe
|
|
# and livenessProbe
|
|
port: 443
|
|
|
|
mgmt:
|
|
enabled: true
|
|
image: openpolicyagent/kube-mgmt
|
|
imageTag: 0.8
|
|
imagePullPolicy: IfNotPresent
|
|
extraArgs: []
|
|
resources: {}
|
|
configmapPolicies:
|
|
# NOTE IF you use these, remember to update the RBAC rules below to allow
|
|
# permissions to get, list, watch, patch and update configmaps
|
|
enabled: false
|
|
namespaces: [opa, kube-federation-scheduling-policy]
|
|
requireLabel: true
|
|
replicate:
|
|
# NOTE IF you use these, remember to update the RBAC rules below to allow
|
|
# permissions to replicate these things
|
|
cluster: []
|
|
# - [group/]version/resource
|
|
namespace: []
|
|
# - [group/]version/resource
|
|
path: kubernetes
|
|
|
|
# Log level for OPA ('debug', 'info', 'error') (app default=info)
|
|
logLevel: info
|
|
|
|
# Log format for OPA ('text', 'json') (app default=text)
|
|
logFormat: text
|
|
|
|
# Number of OPA replicas to deploy. OPA maintains an eventually consistent
|
|
# cache of policies and data. If you want high availability you can deploy two
|
|
# or more replicas.
|
|
replicas: 1
|
|
|
|
# To control how the OPA is scheduled on the cluster, set the tolerations and
|
|
# nodeSelector values below. For example, to deploy OPA onto the master nodes:
|
|
#
|
|
# tolerations: [{key: "node-role.kubernetes.io/master", effect: NoSchedule, operator: Exists}]
|
|
# nodeSelector: {"kubernetes.io/role": "master"}
|
|
tolerations: []
|
|
nodeSelector: {}
|
|
|
|
# To control the CPU and memory resource limits and requests for OPA, set the
|
|
# field below.
|
|
resources: {}
|
|
|
|
rbac:
|
|
# If true, create & use RBAC resources
|
|
#
|
|
create: true
|
|
rules:
|
|
cluster: []
|
|
# - apiGroups:
|
|
# - ""
|
|
# resources:
|
|
# - namespaces
|
|
# verbs:
|
|
# - get
|
|
# - list
|
|
# - watch
|
|
|
|
serviceAccount:
|
|
# Specifies whether a ServiceAccount should be created
|
|
create: true
|
|
# The name of the ServiceAccount to use.
|
|
# If not set and create is true, a name is generated using the fullname template
|
|
name:
|
|
|
|
# This proxy allows opa to make Kubernetes SubjectAccessReview checks against the
|
|
# Kubernetes API. You can get a rego function at github.com/open-policy-agent/library
|
|
sar:
|
|
enabled: false
|
|
image: lachlanevenson/k8s-kubectl
|
|
imageTag: latest
|
|
imagePullPolicy: IfNotPresent
|
|
resources: {}
|
|
|
|
# To control the liveness and readiness probes change the fields below.
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
scheme: HTTPS
|
|
port: 443
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
scheme: HTTPS
|
|
port: 443
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|