Operator flags¶
Every command-line flag of the operator (the manager binary built from cmd/main.go), with its type, default and description. Generated from the binary's --help output.
Each flag --some-name can also be set with the environment variable PROTEM_SOME_NAME: PROTEM_ followed by the flag name in upper case with dashes replaced by underscores. A flag given on the command line takes precedence over its environment variable.
| Flag | Type | Default | Description |
|---|---|---|---|
--agent-image |
string | "ghcr.io/illeniumstudios/protem-agent:latest" |
The agent image the UI's install files use |
--agent-manifests |
string | "https://github.com/iLLeniumStudios/protem//config/agent/spoke?ref=main" |
The kustomize location of the agent manifests the UI's install files use |
--api-bind-address |
string | ":8080" |
The address the Protem web UI & REST API server binds to. |
--dev-auth |
bool | Enable development personas via X-Test-User (refuses to start unless bound to loopback) | |
--enable-http2 |
bool | If set, HTTP/2 will be enabled for the metrics and webhook servers | |
--health-probe-bind-address |
string | ":8081" |
The address the probe endpoint binds to. |
--history-retention |
duration | Delete finished requests, and their grants, this long after their last audit event. 0 keeps them forever; otherwise at least 1m. | |
--hub-api-url |
string | The hub's Kubernetes API URL as agents on target clusters reach it; required to connect agents from the UI | |
--hub-cluster-name |
string | "local" |
Cluster name of the hub in the fleet |
--join-token-ttl |
duration | 15m0s |
How long a join token issued in the UI works, from 10m to 1h |
--kubeconfig |
string | Paths to a kubeconfig. Only required if out-of-cluster. | |
--leader-elect |
bool | Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager. | |
--metrics-bind-address |
string | "0" |
The address the metrics endpoint binds to. Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service. |
--metrics-cert-key |
string | "tls.key" |
The name of the metrics server key file. |
--metrics-cert-name |
string | "tls.crt" |
The name of the metrics server certificate file. |
--metrics-cert-path |
string | The directory that contains the metrics server certificate. | |
--metrics-secure |
bool | true |
If set, the metrics endpoint is served securely via HTTPS. Use --metrics-secure=false to use HTTP instead. |
--oidc-client-id |
string | OIDC Client ID (e.g. protem) | |
--oidc-issuer-url |
string | OIDC Issuer URL (e.g. http://localhost:8085/realms/protem) | |
--sign-out-url |
string | URL the UI opens to sign out (e.g. /oauth2/sign_out); empty hides the link | |
--subject-template |
string | "{{.Email}}" |
Template for mapping user to RBAC subject (e.g. {{.Email}} or oidc:{{.Email}}) |
--ui-management |
string | "readonly" |
readonly, or enabled to let the UI create, edit and delete AccessProfiles and add, edit and remove TargetClusters (requires config/rbac/ui_management_role.yaml) |
--webhook-cert-key |
string | "tls.key" |
The name of the webhook key file. |
--webhook-cert-name |
string | "tls.crt" |
The name of the webhook certificate file. |
--webhook-cert-path |
string | The directory that contains the webhook certificate. | |
--zap-devel |
bool | true |
Development Mode defaults(encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode defaults(encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error) |
--zap-encoder |
value | Zap log encoding (one of 'json' or 'console') | |
--zap-log-level |
value | Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error', 'panic'or any integer value > 0 which corresponds to custom debug levels of increasing verbosity | |
--zap-stacktrace-level |
value | Zap Level at and above which stacktraces are captured (one of 'info', 'error', 'panic'). | |
--zap-time-encoding |
value | Zap time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano'). Defaults to 'epoch'. |