K8s Yaml Configuration

K2 Agents Kubernetes Configuration Options for Installation

Overview

This page describes the configuration options in Kubernetes installation of K2 Agents and also provides default values for it.

Environment Variables Configuration

Environment Variable
Default Value
Description

K2_URL

"https://k2io.net"

K2 portal URL. If you use on-premises version, please update to its URL.

K2_GROUP_NAME

"PRODUCTION"

This is the K2 policy group name.

K2_API_ACCESSOR_TOKEN

"XXXXXXXXXX-8595-cd42-8d1e-da9XXXXXXXXX"

This is your access token for your account created at k2io.net. You can get this value from http://k2io.net/centralmanager/#!/app/account/license

K2_CUSTOMER_ID

"1999"

This is your customer ID. You can get this value from http://k2io.net/centralmanager/#!/app/account/license

K2_PULL_INTERVAL

60

This is pull interval in seconds for policy from K2 portal. Default is once every 60 seconds.

DOCKER_API_VERSION

"1.38"

This is the docker API Version used by K2 Agents.

K2_INSTALL_TYPE

3

This is the K2agent install type. For prevent-web the value is 3.

K2_MONITOR_MODE

"true"

This property enables K2 Monitoring mode when set to true and vice versa.

K2_CLUSTER_ID

"2e95c174-78e9-XXXX"

The cluster ID where the K2 service is deployed

K2_CLUSTER_NAME

"test"

The cluster name where the K2 service is deployed.

K2_AGENT_DEPLOYMENT_ENV

"PRODUCTION"

This is the deployment environment of the K2 agent. Values can be PRODUCTION, IAST, QA etc. If you are using K2 in RASP mode, use PRODUCTION as value.

K2 Agent Kubernetes Service

Ports
Defaults
Description

FTP

54322

K2 Agent Service exposes 54322 port for FTP Server. Please don't change the value.

WebSocket

54321

K2 Agent Service exposes 54321 port for communication with K2 Language Agents. Please don't modify this value.

Last updated

Was this helpful?