Kubernetes Agent Installation

Provision an API Key

Start by provisionining an API Key, which the agent will use to authenticate with the API service.

Run as a DaemonSet on every node

Create the following file, using your API Key:

# daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: on-prem-agent #namespace: default labels: app: on-prem-agent spec: selector: matchLabels: name: on-prem-agent template: metadata: labels: app: on-prem-agent spec: tolerations: # this toleration is to have the daemonset runnable on master nodes # remove it if your masters can't run pods - key: node-role.kubernetes.io/master effect: NoSchedule containers: - name: on-prem-agent image: onpremnet/agent:latest env: - name: API_KEY value: __PASTE_YOUR_API_KEY__ resources: limits: memory: 100Mi requests: cpu: 100m memory: 200Mi terminationGracePeriodSeconds: 30

And then apply it to your cluster:

kubectl apply -f daemonset.yaml