Helm Configuration
General Settings
license
You'll receive a license key as part of your subscription to Okteto. If you haven't received it, please open a support ticket.
If you are interested in evaluating Okteto, sign up for our free 30 days trial, no credit card required.
license: XXXXX
You can also use a secret to store the license.
subdomain
Okteto's automatic SSL endpoints allows you to expose secure and unique public endpoints for your development environments. By default, all endpoints created by Okteto will use a combination of the name of the app, the namespace, and the subdomain
.
For example, if you have a development environment named app
in the cindy
namespace, it will be accessible at https://app-cindy.example.com if subdomain
is example.com.
subdomain: "example.com"
Okteto's frontend and API services will be also accessible via https://okteto.$SUBDOMAIN.
Once Okteto is installed, you can use kubectl
to retrieve the public address of the Okteto NGINX Ingress Controller:
kubectl get service -l=app.kubernetes.io/name=ingress-nginx,app.kubernetes.io/component=controller --namespace=okteto
The output will look something like this:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
okteto-ingress-nginx-controller LoadBalancer 10.0.7.73 34.68.230.234 80:30795/TCP,443:32481/TCP,1234:30885/TCP 5m
You'll need to take the EXTERNAL-IP
address to create a DNS entry for *.$SUBDOMAIN
.
You can overwrite Okteto's public URL using the publicOverride field.
publicOverride
Use this property to override the Public URL where Okteto is available. This option replaces okteto.$SUBDOMAIN
with your FQDN of choice.
publicOverride: "example.com"
Important: When using publicOverride
, the certificate referred by wildcardCertificate.name must be valid for publicOverride
, registry.$SUBDOMAIN
and buildkit.$SUBDOMAIN
.
When publicOverride
is set, an additional component is deployed for Okteto Private Endpoints feature.
You can configure its settings using the privateEndpoints section.
When setting your auth provider, the authentication callback URL and origin URL will change to the following:
Callback URL:
https://${publicOverride}/auth/callback
https://private-endpoints.${subdomain}/auth/callback
Origin URL:
https://${publicOverride}
https://private-endpoints.${subdomain}
auth
Okteto supports the following authentication methods:
Bitbucket
Follow Bitbucket's official documentation on how to create an OAuth Consumer.
When creating the OAuth Consumer, you will need to provide the following values:
Callback URL:
https://okteto.DOMAIN/auth/callback
URL:
https://okteto.DOMAIN
Permissions: Account: Email Account: Read
Use this group of settings when using Bitbucket OAauth as your authentication provider.
auth:
bitbucket:
enabled: true
clientId: OAauth Consumer Key
clientSecret: OAauth Consumer Secret
workspace: my-workspace
You can also use a secret to store the sensitive part of these credentials.
The workspace
field is optional. Only members of the workspace will be allowed to login into your Okteto instance. An empty workspace
field permits any user to log in.
GitHub
If you are planning on using the GitHub Integration, you should follow this guide. You'll then use the same Github Application for the Integration as the one from Oauth.
Follow GitHub's official documentation on how to create an OAuth App.
When creating the OAuth App, you will need to provide the following values:
Homepage URL:
https://okteto.DOMAIN
Authorization callback URL:
https://okteto.DOMAIN/auth/callback
Use this group of settings when using GitHub OAuth as your authentication provider.
auth:
github:
enabled: true
clientId: clientID
clientSecret: clientSecret
organization: my-org
You can also use a secret to store the sensitive part of these credentials.
The organization
field is optional. Only members of the organization will be allowed to log in into your Okteto instance. An empty organization
field permits any user to log in.
If you want to provide access to users outside of your GitHub organization, you can additionally use the allowList
key to list the GitHub accounts you want to allow.
auth:
github:
enabled: true
clientId: clientID
clientSecret: clientSecret
organization: my-org
allowList: ["acct1","acct2","acct3"]
We also have a video walking you through the steps on configuring GitHub as an authentication provider for your Okteto installation:
Google
Follow Google's official documentation on how to create an OAuth 2.0 Client.
When creating the OAUTH 2.0 Client, you will need to provide the following values:
Authorized javascript origin:
https://okteto.DOMAIN
Authorized redirect URIs:
https://okteto.DOMAIN
https://okteto.DOMAIN/auth/callback
Use this group of settings when using Google OAuth as your authentication provider.
auth:
google:
enabled: true
clientId: clientid.apps.googleusercontent.com
clientSecret: clientSecret
allowDomains:
- example.com
You can also use a secret to store the sensitive part of these credentials.
The allowDomains
field is optional. Only users with Google Workspace accounts that match one of the domains on the list will be allowed to log into your Okteto instance. An empty allowDomains
field permits any user with a valid Google Workspace account to log in.
OpenID Connect
Follow your OpenID Connect service provider's documentation on how to create the required application.
Okteto supports any identity provider that implements the OpenID Connect standard. The following external identity providers have been tested with Okteto:
Are we missing your favorite identity provider? Open a feature request in the Okteto Community and let us know!
When creating the application, you'll need to provide the following values:
- Start SSO URL:
https://okteto.DOMAIN
- Redirect URIs:
https://okteto.DOMAIN
,https://okteto.DOMAIN/auth/callback
- Scopes:
openid
,email
,profile
- Response Type:
code
- Grant Type:
authorization code
Use this group of settings when using an OpenID Connect provider as your authentication provider.
auth:
openid:
enabled: true
clientId: clientid
clientSecret: clientSecret
group: my-group
endpoints:
issuer: https://your-provider
authorization: https://your-provider/authorization
mapping:
externalIDKey: nickname
nameKey: name
emailKey: email
pictureKey: picture
groupsKey: groups
You can also use a secret to store the sensitive part of these credentials.
The group
field is optional. Only members of the group will be allowed to log in into your Okteto instance. An empty group
field permits any user to log in.
The issuer
and authorization
endpoints must match the value returned in the provider config discovery.
The mapping
fields are optional. Use them to configure the mapping between Okteto's user attributes and the claim coming from your authentication provider.
Your provider needs to support the UserInfo endpoint in order to be used with Okteto. This authentication option follows the OpenID standard, and it has been validated with Okta, PingIdentity, and GitLab.
Token
Okteto defaults to token-based authentication to simplify the installation and configuration of Okteto self-hosted.
This enables you to use a token for a single user, login to the Okteto UI, and start exploring Okteto's features and functionality much faster than configuring other authentication methods. Other authentication methods are more time-consuming and cumbersome to configure.
Once you've completed the initial configuration of Okteto using token-based authentication and explored the product, you can then switch to another authentication method. Token-based authentication would no longer be ideal as you expand to multiple users and incorporating production environments into Okteto.
auth:
token:
enabled: true
Follow our post-installation notes to learn how to login to the Okteto UI and configure your Okteto CLI with a randomly generated token.
Theme
Use this property to customize the logo and the colors of the sidebar to match your team's identity or your favorite colors.
logo
: The logo displayed at the far top left of the Okteto UI. The value can be a url or a Base64 encoded image.primary
: The primary color of the sidebar. This is used for the color of the sidebar. The value can be a HTML color name (e.g. blue, red) or a hexadecimal code.secondary
: The secondary color of the sidebar. This is used for the icons and the text displayed in the sidebar. The value can be a HTML color name (e.g. blue, red) or a hexadecimal code.
theme:
logo: http://example.com/icon.png
primary: \#EFF3F2
secondary: black
Okteto Components
api
The API service. Account and Kubernetes credentials management, namespace creation, and sharing, deployment via the catalog, etc...
annotations
: Annotations to add to the API pods.extraEnv
: Environment variables to be set on the API containers.labels
: Labels to add to the API pods.priorityClassName
: The priority class to be used by the API pods.replicaCount
: The number of API pods. It defaults to 2.resources
: The resources for the API pods.
api:
extraEnv:
- name: NO_PROXY
value: ".example.com"
replicaCount: 2
resources:
requests:
cpu: 100m
memory: 128Mi
autoscaler
The cluster autoscaler service. Disabled by default.
It instructs the Kubernetes cluster autoscaler to scale nodes if the real cpu/memory usage of a node is beyond the limits.
Use tolerations.devPool
to limit the autoscaler analysis to a subset of cluster nodes.
Requirements: cluster autoscaler and metrics server must be installed in your cluster.
annotations
: Annotations to add to the autoscaler pods.cpu.up
: Increase the cluster size when the CPU consumption is greater than or equal to this value. It defaults to 60 percent.cpu.down
: Decrease the cluster size when the CPU consumption is lesser than this value. It defaults to 40 percent.image
: image used by the autoscaler to deploy the autoscaler agent. It defaults tobusybox
.labels
: Labels to add to the autoscaler pods.memory.up
: Increase the cluster size when the Memory consumption is greater than or equal to this value. It defaults to 70 percent.memory.down
: Decrease the cluster size when the Memory consumption is lesser than this value. It defaults to 50 percent.nodes.increment
: The number of new nodes to request when all the current nodes are overloaded. e.g. if this value is 3, the autoscaler will request 3 new nodes when all the cluster nodes are overloaded. It defaults to 1.nodes.min
: Minimum number of nodes in the cluster. It defaults to 1.nodes.max
: Maximum number of nodes in the cluster. It defaults to 10. Zero means unlimited.nodes.poolLabel
: The node label that identifies the node pool of the node. For example, the value in GKE iscloud.google.com/gke-nodepool
. In EKS the value iseks.amazonaws.com/nodegroup
. If set, the autoscaler scales each node pool independently.pods.up
: Increase the cluster size when the Pods in a node vs the max pods per node is greater than or equal to this value. It defaults to 90 percent.pods.down
: Decrease the cluster size when the Pods in a node vs the max pods per node is lesser than this value. It defaults to 80 percent.priorityClassName
: The priority class to be used by the autoscaler pods.schedule
: How often, in seconds, the autoscaler analyzes if the cluster needs to be scaled. It defaults to 300.slackWebhook
: A slack webhook url to notify autoscaler events.volumes.up
: Increase the cluster size when the Volumes in a node vs the max volumes per node is greater than or equal to this value. It defaults to 90 percent.volumes.down
: Decrease the cluster size when the Volumes in a node vs the max volumes per node is lesser than this value. It defaults to 80 percent.
autoscaler:
enabled: false
image: busybox
schedule: 300
cpu:
up: 60
down: 40
memory:
up: 70
down: 50
pods:
up: 90
down: 80
volumes:
up: 90
down: 80
nodes:
increment: 1
min: 1
max: 10
podLabel: cloud.google.com/gke-nodepool
slackWebhook:
buildkit
The build service. It's used in combination with okteto build
to build containers directly in the cluster.
port
: Port used for the buildkit statefulset. Defaults to443
.annotations
: Annotations to add to the buildkit pods.extraEnv
: Environment variables to be set on the buildkit containers.hpa.enabled
: Enable horizontal pod autoscaling for the buildkit pods. Disabled by default.hpa.min
: Minimum number of buildkit pods to keep running.hpa.max
: Maximum number of buildkit pods to scale to.hpa.cpu
: The amount of CPU utilization that will cause the HPA to scale the buildkit pods.labels
: Labels to add to the buildkit pods.podManagementPolicy
: The podManagementPolicy of the buildkit pods. Defaults toParallel
.priorityClassName
: The priority class to be used by buildkit pods.replicaCount
: The number of buildkit pods. It defaults to 1.resources
: The resources for the buildkit pods.serviceAccount.create
: create a service account for buildkit. True by default.serviceAccount.name
: Buildkit service account name. Defaults tookteto-buildkit
.serviceAccount.annotations
: Annotations for the buildkit service account.serviceAccount.labels
: Labels for the buildkit service account.persistence.enabled
: Configures a persistence volume for buildkit. False by default.persistence.storageClass
: The storage class of the persistence volume attached to every buildkit pod.persistence.size
: The size of the persistence volume attached to every buildkit pod. Defaults to750Gi
.persistence.cache
: The size (in Mi) of the buildkit cache to store image caches. It should be around 30Gi smaller thanstorage.size
. Defaults to 500Gi.
buildkit:
port: 443
extraEnv:
- name: NO_PROXY
value: ".example.com"
replicaCount: 1
persistence:
enabled: true
storageClass: ssd
size: 180Gi
cache: 150000
In order to handle timeouts during communication between the client and the buildkit daemon, the following environment variables can be modified on the server side:
OKTETO_KEEPALIVE_SERVER_TIME_MS
: After this duration of time, if the server doesn't see any activity it pings the client to see if the transport is still alive. If set below 1s, a minimum value of 1s will be used. The current default value is 2 hours.OKTETO_KEEPALIVE_SERVER_TIMEOUT_MS
: After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen, the connection is closed. The current default value is 20 seconds.OKTETO_KEEPALIVE_SERVER_MAX_CONN_IDLE_MS
: Duration for the amount of time after which an idle connection would be closed by sending a GOAWAY. Idleness duration is defined since the most recent time the number of outstanding RPCs became zero or the connection establishment. The current default value is infinity.OKTETO_KEEPALIVE_SERVER_MAX_CONN_AGE_MS
: Duration for the maximum amount of time a connection may exist before it will be closed by sending a GOAWAY. A random jitter of +/-10% will be added to the value to spread out connection storms. The current default value is infinity.OKTETO_KEEPALIVE_SERVER_MAX_CONN_AGE_GRACE_MS
: An additive period afterOKTETO_KEEPALIVE_SERVER_MAX_CONN_AGE_MS
after which the connection will be forcibly closed. The current default value is infinity.OKTETO_KEEPALIVE_SERVER_POLICY_MINTIME_MS
: Minimum amount of time a client should wait before sending a keepalive ping. The current default value is 5 minutes.OKTETO_KEEPALIVE_SERVER_POLICY_PERMIT_WITHOUT_STREAM
: If true, server allows keepalive pings even when there are no active streams(RPCs). If false, and client sends pings when there are no active streams, server will send GOAWAY and close the connection. False by default.
If you're trying to configure Buildkit persistency for your Okteto installation, check out our video tutorial:
daemonset
The daemonset automatically configures every node of your cluster to work better with Okteto.
annotations
: Annotations to add to the daemonset pods.extraEnv
: Environment variables to be set on the daemonset containers.labels
: Labels to add to the daemonset pods.image
: Container image used by the daemonset pods.configurePrivateRegistriesInNodes.enabled
: Specifies if the daemonset should configure the private registry credentials in the nodes for kubelet or not. It defaults totrue
.priorityClassName
: The priority class to be used by the daemonset pods.
daemonset:
configurePrivateRegistriesInNodes:
enabled: true
The daemonset performs the following tasks on each node:
- Overrides the Okteto Registry hostname resolution to use internal IPs.
- Overrides the default kernel values for file watchers on every node.
- Configures the kubelet with registry credentials for private registries (if
configurePrivateRegistriesInNodes.enabled
key istrue
). - Installs your CA if
wildcardCertificate.privateCA
is enabled. - Installs a CA if using self-signed certificates (
wildcardCertificate.create: true
).
You can restrict the nodes where the daemonset is deployed using tolerations:
tolerations:
devPool: dev
defaultBackend
The defaultBackend receives errored requests from the ingress-controller and transform them returning them to the client.
affinity
: Affinities to add to the defaultBackend pods.annotations
: Annotations to add to the defaultBackend pods.enabled
: Control if defaultBackend is deployed. Defaults totrue
.extraEnvs
: Environment variables to be set on the defaultBackend containers.image
: Configuration block to customize the image used by the defaultBackend pods.repository
: Registry and repository for the defaultBackend pods.tag
: Tag used for the defaultBackend pods.
labels
: Labels to add to the defaultBackend pods.nodeSelector
: Labels to select on which nodes defaultBackend pods will be scheduled.port
: Internal port used for the defaultBackend. Defaults to8080
.priorityClassName
: The priority class to be used by the defaultBackend pods.replicaCount
: The number of defaultBackend pods. It defaults to 2.resources
: The resources for the defaultBackend pods.tolerations
: The toletations for the defaultBackend pods.
defaultBackend:
replicaCount: 3
resources:
requests:
cpu: 100m
memory: 128Mi
The defaultBackend provides the following features:
- Autowake namespaces: when a user access an endpoint from an slept namespace, the defaultBackend will issue a wake command.
- Custom error pages: when a user access an endpoint and an error is produced, the defaultBackend will return a custom error page with hints on how to solve it.
You can also restrict the nodes where the defaultBackend is deployed using tolerations:
tolerations:
devPool: dev
frontend
The frontend service serves the web application.
annotations
: Annotations to add to the frontend pods.extraEnv
: Environment variables to be set on the frontend containers.labels
: Labels to add to the frontend pods.priorityClassName
: The priority class to be used by the frontend pods.replicaCount
: The number of frontend pods. It defaults to 2.resources
: The resources for the frontend pods.
frontend:
extraEnv:
- name: NO_PROXY
value: ".example.com"
replicaCount: 2
resources:
requests:
cpu: 100m
memory: 128Mi
gc
The Okteto Garbage Collector service automatically scales idle applications to zero and deletes unused namespaces for optimal cost savings and resource management. It is enabled by default.
annotations
: Annotations to add to the gc pods.labels
: Labels to add to the gc pods.scaleToZeroPeriod
: The duration, in hours, that an application or resource must be idle before the garbage collector scales it to zero. Set to zero to disable.deleteNamespacePeriod
: The duration, in days, that a namespace must be idle before the garbage collector deletes it. Set to zero to disable.slackWebhook
: If set, the garbage collector will send a notification when it scales a resource to zero or when it deletes a namespace.upSessionByLastSyncedFile
: If true, okteto up sessions will be scaled to zero if not files have been synchronized in the scale to zero period. Default behavior is to check for an active connection (regardless of inactivity)priorityClassName
: The priority class to be used by the gc pods.
gc:
enabled: true
scaleToZeroPeriod: 24
deleteNamespacePeriod: 15
upSessionByLastSyncedFile: false
slackWebhook:
installer
The jobs that deploy your development environments from Git.
annotations
: Annotations to add to the installer job pods.extraEnv
: Environment variables to be set on the installer job containers.labels
: Labels to add to the installer job pods.image
: to configure your custom installer binaries, including a custom Okteto CLI version.runner
: to configure your custom installer image.activeDeadlineSeconds
: Maximum duration of the pipeline in seconds.gitSSHUser
: User to be used when cloning git repos using ssh.sshSecretName
: The name of the secret that contains the private key used when cloning git repos using ssh. If it doesn't exist, the key and the secret will be automatically generated by Okteto.resources
: The resources for pods created by the installer jobs.priorityClassName
: The priority class for pods created by the installer job pods.
installer:
image: okteto/installer:1.5.2
runner: okteto/pipeline-runner:1.0.0
extraEnv:
- name: NO_PROXY
value: ".example.com"
activeDeadlineSeconds: 1800
gitSSHUser: git
sshSecretName: "okteto-ssh"
resources:
requests:
cpu: 10m
memory: 50Mi
privateEndpoints
When publicOverride is set, Okteto Self Hosted deploys an additional component for Okteto Private Endpoints feature, which is responsible for authenticating and authorizing requests sent to Okteto Endpoints set to private mode.
port
: Internal port used for the Private Endpoint component. Defaults to8080
.resources
: The resources for the Private Endpoint component pods.replicaCount
: The number of Private Endpoint component pods. It defaults to 1.annotations
: Annotations to add to the Private Endpoint component pods.priorityClassName
: The priority class to be used by the Private Endpoints pods.
By default, the Private Endpoint component will inherit the configuration set at the [auth
] section, but you can override some values with the following properties:
clientID
: Overridesauth.*.clientID
.clientSecret
: Overridesauth.*.clientSecret
.
registry
The private container registry.
annotations
: Annotations to add to the registry pods.extraEnv
: Environment variables to be set on the registry containers.ingress.annotations
: Annotations to add to the registry ingress. These annotations take precendence over the ones defined in the ingress section.labels
: Labels to add to the registry pods.pullPolicy
: The security policy for image pulls. If set tocluster
, any Okteto user can pull any image from the registry. When set tonamespace
, only users with access to the namespace can pull images from the namespace. It defaults tonamespace
.priorityClassName
: The priority class to be used by the registry pods.replicaCount
: The number of registry pods. It defaults to 1.resources
: The resources for the registry pods.serviceAccountName
: Alternative service account to be used by the registry. The service account must exist in the same namespace for the Okteto Helm release. Defaults to none.serviceAccount.annotations
: Annotations to add to the registry service account.secret.name
: when using external storage, the name of the secret with the values of your cloud provider credentials.secret.accessKey
: the key of the access key in the secret referenced bysecret.name
(defaults toaccessKey
).secret.secretKey
: the key of the secret key in the secret referenced bysecret.name
(defaults tosecretKey
).storage
: The storage mechanism for the images.
storage
Okteto supports different storage drivers to store the images inside the Okteto Registry. Check out our video tutorial on how to configure a persistent storage for your Okteto installation:
filesystem
Set filesystem.enabled
to true if you want to store the images in the container filesystem.
Additionally, set filesystem.persistence.enabled
to true if you want to store the images in a PVC attached to the registry.
Both options might limit your ability to scale up the registry, depending on the type of storage you are using.
You can also customize the storageClass
(optional), the size
of the volume (defaults to 40Gi), or attach an existing volume claim via claimName
.
registry:
storage:
filesystem:
enabled: true
persistence:
enabled: true
claimName: ""
accessMode: ReadWriteOnce
storageClass: ""
size: 40Gi
azure
Use this to use Azure Storage to store your private images.
STORAGE_ACCOUNT_ACCESS_KEY
refers to a storage account access key with read/write permissions to the storage container specified in the Okteto configuration.
Create a secret with the value of STORAGE_ACCOUNT_ACCESS_KEY
using the command below.
$ kubectl create secret generic okteto-registry-secret --namespace=okteto --from-literal=secretKey=STORAGE_ACCOUNT_ACCESS_KEY
Then, add the following configuration to your Okteto helm values file:
registry:
storage:
provider:
azure:
enabled: true
storage:
container: "storage-container-name"
accountName: "service-account-name"
aws
Use this to use S3 to store your private images.
IAM Role for Service Account (recommended)
Use this option to give the registry pods a role to authenticate with the S3 bucket.
To do that, add the following configuration to your Okteto helm values file:
registry:
storage:
provider:
aws:
enabled: true
bucket: "bucket-name"
region: "aws-region"
iam:
enabled: false
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::111122223333:role/okteto-registry-role-name"
IAM User
IAM_SECRET_KEY
refers to the secret key of an IAM with read/write permissions to the bucket specified in the Okteto configuration.
Create a secret with the value of IAM_SECRET_KEY
using the command below.
$ kubectl create secret generic okteto-registry-secret --namespace=okteto --from-literal=secretKey=IAM_SECRET_KEY
Then, add the following configuration to your Okteto helm values file:
registry:
storage:
provider:
aws:
enabled: true
bucket: "bucket-name"
region: "aws-region"
iam:
enabled: true
accessKeyID: "XXXXXX"
digitalocean
Use this to use DigitalOcean Spaces to store your private images.
ACCESS_KEY
refers to the access key of the storage space specified in the Okteto configuration.
Create a secret with the value of ACCESS_KEY
using the command below.
$ kubectl create secret generic okteto-registry-secret --namespace=okteto --from-literal=secretKey=ACCESS_KEY
Then, add the following configuration to your Okteto helm values file:
registry:
storage:
provider:
digitalocean:
enabled: true
space:
name: "space-name"
accessKeyID: "access-key"
gcp
Use this to use Google Cloud Storage to store your private images.
Workload Identity (recommended)
Use this option to configure the registry pods with a workload id to authenticate with the bucket.
To do that, add the following configuration to your Okteto helm values file:
registry:
storage:
provider:
gcp:
enabled: true
bucket: "bucket-name"
project: "project-id"
workloadIdentity:
enabled: true
serviceAccount:
annotations:
iam.gke.io/gcp-service-account: "GSA_NAME@GSA_PROJECT.iam.gserviceaccount.com"
Service Account Key (JSON)
key.json
refers to a file containing the key of a service account with read/write permissions to the storage bucket specified in the Okteto configuration.
Create a secret with the value of key.json
using the command below.
$ kubectl create secret generic okteto-registry-secret --namespace=okteto --from-file=key=key.json
Then, add the following configuration to your Okteto helm values file:
registry:
storage:
provider:
gcp:
enabled: true
bucket: "bucket-name"
project: "project-id"
telemetry
The telemetry job "phones home" once a day with the following information:
- Number of managed users
- Number of managed namespaces
- Kubernetes Version and Platform
- A unique install ID
- Your license ID.
- The name of the authentication provider
- The name of the cloud provider
Okteto uses the information to help us better understand how our customers use Okteto, as well as to help us prioritize fixes and features. We don't share your information with anyone else.
enabled
: Enables or disables the telemetry job. Defaults totrue
.priorityClassName
: The priority class to be used by the telemetry pods.
telemetry:
enabled: true
If this configuration is disabled, Okteto CLI analytics are automatically disabled.
webhook
The webhook service. Ingress creation, generation of hostnames, enforcement of policies, etc...
annotations
: Annotations to add to the webhook pods.extraEnv
: Environment variables to be set on the webhook containers.hostNetwork
: Enables or disables host networking for the webhook deployment. The default is false.labels
: Labels to add to the webhook pods.port
: Port sets the port used for the webhook deployment. The default is 443.priorityClassName
: The priority class to be used by the webhook pods.replicaCount
: The number of webhook pods. It defaults to 2.resources
: The resources for the webhook pods.internalCertificate.annotations
: Annotations to add to the internal certificate generated for the webhook.
Advanced Configuration
affinity
Apply default affinities to pods deployed in namespaces created by Okteto.
devPool
: Affinities for pods created on namespaces managed by Okteto.oktetoPool
: Affinities for pods created during the Okteto installation.
affinity:
devPool:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: cloud.google.com/spot
operator: In
values:
- "true"
weight: 10
oktetoPool:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: dev.okteto.com/overloaded
operator: DoesNotExist
weight: 50
In this case, pods deployed in namespaces created by Okteto will have a preferred affinity to land on preemptible nodes.
clusterRole
Okteto assings this cluster role to every user via a namespace-scoped role binding.
The default value assigns each developer a cluster-admin
role binding with only access to their personal namespaces.
clusterRole: "cluster-admin"
convertLoadBalancedServices
Converts services with type LoadBalancer into ClusterIP and automatically creates an ingress. Enabled by default.
convertLoadBalancedServices:
enabled: true
crds
Configures CRDs managed by Okteto
annotations
: The annotations to apply to the CRDs created during the Okteto installation.keep
: Keep CRDs on chart uninstall (defaults totrue
).install
: Install and upgrade CRDs on chart install (defaults totrue
).
crds:
install: true
keep: true
annotations: {}
devStorageClass
Uses the specified storage class for all persistent volume claims created when developers execute okteto up
. This setting will override any storage class defined on the Okteto manifest. Disabled by default.
storageClass
: The storage class enforced for persistent volume claims created byokteto up
.
devStorageClass:
enabled: true
storageClass: ebs-sc
There is only one exception where this storage class is overwritten. In case of having volume snapshots feature configured, if a storage class is required for the snapshots that storage class will have preference.
globalClusterRole
Okteto assings this cluster role to every user via a cluster role binding. By default, this behavior is disabled. This can be useful to give access to cluster level resources to every developer account, like accessing the Node API.
globalClusterRole: ""
ingress
Configure default values for the ingress created by Okteto.
annotations
: The annotations to apply to all the ingresses created during the Okteto installation.oktetoIngressClass
: TheingressClassName
to apply to all the ingresses created during the Okteto installation (defaults tonginx
).class
: If specified, Okteto will set this as theingressClassName
of all ingresses managed by Okteto. This is useful if you have more than one ingress controller in your cluster.forceIngressClass
: If enabled, all ingresses deployed in namespaces managed by Okteto will have the ingress class defined iningress.class
(default:false
).forceIngressSubdomain
: If enabled, the subdomain of the host of all ingresses deployed in namespaces managed by Okteto must match the okteto wildcard subdomain (default:false
).ip
: The internal IP of the ingress. Pods will call the Okteto API and the Okteto Registry using this IP. Required if the installation of the Okteto NGINX Ingress Controller is disabled.
ingress:
annotations: {}
oktetoIngressClass: nginx
class: nginx
forceIngressClass: false
forceIngressSubdomain: true
ip: ""
ingressLimits
Configure ingress connections limits for each public endpoint. Disabled by default.
connections
: Maximum parallel connections for each ingress.rps
: Maximum requests per second for each ingress.rpm
: Maximum requests per minute for each ingress.
ingressLimits:
enabled: true
connections: 40
rps: 40
rpm: 400
injectDevelopmentBinaries
Automatically inject kubectl, helm, and okteto binaries on every development environment, and on the git and helm deployment pipelines. This requires permissions to mount a host volume.
If this is disabled, you'll need to provide your own image in installer.image
.
injectDevelopmentBinaries:
enabled: true
insights
Configures the Okteto Insights feature in your Okteto instance.
enabled
: Whether to enable Okteto Insights. Defaults tofalse
.bearerSecret.name
: Name of the secret where the token to acces Okteto Insights metrics is stored. Defaults tookteto-insights
.bearerSecret.key
: Name of the key within the secret where the token to access Okteto Insights metrics is stored. Defaults tobearer
.
kubetoken
lifetimeSeconds
: The lifetime in seconds of the tokens generated for the Kubernetes credentials provided by Okteto. This value has to be equal or greater thaninstaller.activeDeadlineSeconds
to make sure the tokens are valid during all installer execution. Defaults to 86400 seconds (1 day).
One important thing to bear in mind is that the maximum expiration time you can specify depends on the Kubernetes apiserver's flag
--service-account-max-token-expiration
, so it might happen that the expiration time retrieved on your tokens is not the one specified here. If you specify a higher value, you will always get the maximum allowed by the apiserver. Be aware that not all Kubernetes service providers allow you to change this value and they enforce their own.
namespace
Annotation and label customizations in namespaces created by Okteto. These annotations and labels are additional to the ones already applied by Okteto.
annotations
: Annotations applied to each namespace created by Okteto.labels
: Labels applied to each namespace created by Okteto.ingress.annotations
: Annotations applied to ingresses in namespaces created by Okteto.ingress.labels
: Labels applied to ingresses in namespaces created by Okteto.
namespace:
annotations:
development: "true"
labels:
istio-injection: enabled
ingress:
annotations:
cert-manager.io/issuer: "letsencrypt"
labels:
development: "true"
networkPolicies
Configures network policies for each namespace to isolate network traffic. Disabled by default.
ingress
: Ingress list of rules (NetworkPolicyIngressRule) to be applied on every namespace managed by Okteto. (optional).egress
: Egress list of rules (NetworkPolicyEgressRule) to be applied on every namespace managed by Okteto (optional).
networkPolicies:
enabled: true
ingress:
- from:
- ipBlock:
cidr: 172.17.0.0/16
except:
- 172.17.1.0/24
- namespaceSelector:
matchLabels:
project: myproject
- podSelector:
matchLabels:
role: frontend
ports:
- protocol: TCP
port: 6379
egress:
- to:
- ipBlock:
cidr: 10.0.0.0/24
ports:
- protocol: TCP
port: 5978
overrideFileWatchers
Overrides the default kernel values for file watchers in every node. Recommended if you're running databases, or if you plan on using "okteto up" on the cluster. This requires permission to mount and modify /proc values.
maxUserWatches
: The maximum number of allowed inotify watchers.maxMapCount
: The maximum number of memory map areas a process may have.aioMaxNR
: The maximum number of allowable concurrent IO requests.
overrideFileWatchers:
enabled: true
maxUserWatches: 10048576
maxMapCount: 262144
aioMaxNR: 1000000
overrideRegistryResolution
Overrides the registry hostname resolution to use internal IPs. This requires permission to mount and modify the cluster nodes' /etc/hosts file.
overrideRegistryResolution:
enabled: true
oktetoBotUser
Overrides the name of the user used for admin access tokens. Defaults to "okteto-bot"
pullAlways
Forces the PullAlways
image pull policy in the cluster. Enabled by default.
pullAlways:
enabled: true