• Print
  • Share
  • Dark
    Light

Kubernetes Installation

  • Updated on 22 Jan 2019
  • 1 minute to read
  • Contributors

Linux Agent on Kubernetes

Installation of the Stackify Linux Agent is required on the Kubernetes Nodes running pods; it should not be installed on containers.

When installing the Linux Agent on the Kubernetes nodes, add the --docker argument to the installation script.

wget https://s1.stackify.com/Account/AgentDownload/Linux --output-document=stackify.tar.gz && \
    tar -zxvf stackify.tar.gz stackify-agent-install-32bit && \
    cd stackify-agent-install-32bit && \
    sudo ./agent-install.sh --docker --key "YOUR ACTIVACTION KEY" --environment "YOUR ENVIRONMENT NAME"

APM on Kubernetes

APM for Kubernetes requires a volume to be setup between the nodes and pods.
Modify your pod configuration to include stackify-volume:

apiVersion: v1
kind: Pod
metadata:
  name: pod-name
spec:
  containers:
  - name: app-name
    image: image-name:tag
    securityContext:
      privileged: true
    volumeMounts:
      - name: stackify-volume
        mountPath: "/usr/local/stackify"
  volumes:
    - name: stackify-volume
    	hostPath:
      	  path: "/usr/local/stackify"

Setup Profiler
Modify your application containers to include the correct application profiler.

Verify
Restart your application and make requests, see results flow into Retrace.

Was this article helpful?