Jesum Yip
11/04/2021, 2:38 AMJesum Yip
11/04/2021, 2:38 AMJesum Yip
11/04/2021, 2:39 AMJesum Yip
11/04/2021, 2:39 AMJesum Yip
11/04/2021, 2:45 AMDennis (Cerbos)
Dennis (Cerbos)
Dennis (Cerbos)
those values appear in the default yaml that is generated when i run helm show values. what’s the difference between the “service” and “cerbos” blocks?one configures K8s service, another configures Cerbos itself.
Dennis (Cerbos)
Dennis (Cerbos)
Jesum Yip
11/04/2021, 3:13 AMJesum Yip
11/04/2021, 3:14 AMDennis (Cerbos)
Jesum Yip
11/04/2021, 3:16 AMDennis (Cerbos)
next, if i look at https://docs.cerbos.dev/cerbos/latest/configuration/server.html, i also see httpListenAddr and grpcListenAddr. how are these values related to the two blocks above? (edited)if you run Cerbos with Helm
Jesum Yip
11/04/2021, 3:16 AMJesum Yip
11/04/2021, 3:17 AMJesum Yip
11/04/2021, 3:18 AMJesum Yip
11/04/2021, 3:18 AMJesum Yip
11/04/2021, 3:18 AMJesum Yip
11/04/2021, 3:18 AMDennis (Cerbos)
Dennis (Cerbos)
Dennis (Cerbos)
Jesum Yip
11/04/2021, 3:20 AMJesum Yip
11/04/2021, 3:20 AMJesum Yip
11/04/2021, 3:21 AMDennis (Cerbos)
Jesum Yip
11/04/2021, 3:22 AMJesum Yip
11/04/2021, 3:23 AMJesum Yip
11/04/2021, 3:23 AMJesum Yip
11/04/2021, 3:23 AMDennis (Cerbos)
--values
flagDennis (Cerbos)
helm install cerbos cerbos/cerbos --version=0.9.1 --values=pv-values.yaml
Jesum Yip
11/04/2021, 3:24 AMJesum Yip
11/04/2021, 3:25 AMJesum Yip
11/04/2021, 3:25 AMDennis (Cerbos)
Jesum Yip
11/04/2021, 3:25 AMJesum Yip
11/04/2021, 3:27 AMJesum Yip
11/04/2021, 3:27 AMJesum Yip
11/04/2021, 3:29 AMJesum Yip
11/04/2021, 3:32 AMDennis (Cerbos)
Charith (Cerbos)
kubectl get cm cerbos -o yaml
. It can be customized during install by adding any config section to the cerbos.config
template value block. It can be through your own values file (see https://github.com/cerbos/cerbos/blob/main/deploy/charts/cerbos/values-audit-log.yaml for an example which you can install as helm install cerbos cerbos/cerbos --values=deploy/charts/cerbos/values-audit-log.yaml
) or as command line arguments to helm (e.g. helm install cerbos cerbos/cerbos --set=cerbos.config.server.adminAPI.enabled=true
)Charith (Cerbos)
service.httpPort
and cerbos.httpPort
is because your Kubernetes service can listen on different ports than those exposed by the pod. The service.httpPort
setting defines how Cerbos is accessed via the service and cerbos.httpPort
defines on which port in the pod the Cerbos binary would be listening.Jesum Yip
11/05/2021, 2:54 PMJesum Yip
11/05/2021, 2:56 PMJesum Yip
11/05/2021, 2:58 PMCharith (Cerbos)