Kubernetes¶
Sidecar¶
-
Add Enclave as a sidecar to your pod yaml file under the
containers:section. For example, if your pod contains an nginx container:spec: containers: - name: nginx-container image: nginx:1.7.9 ports: - containerPort: 80Add the following
enclave-sidecarandvolumesdefinitions to thecontainerssection in your existing yaml deployment:spec: containers: - name: enclave-sidecar image: enclavenetworks/enclave:latest env: - name: "ENCLAVE_ENROLMENT_KEY" value: "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" securityContext: capabilities: add: ['NET_ADMIN'] volumeMounts: - name: tun mountPath: /dev/net/tun volumes: - name: tun hostPath: type: 'CharDevice' path: /dev/net/tunTip
See deployment.yaml for a complete example.
-
Replace
XXXXX-XXXXX-XXXXX-XXXXX-XXXXXwith yourDefault Enrolment Key -
Push your changes to the cluster using
kubectl applyor your preferred method
What to do if the install fails¶
For troubleshooting and errors, use the site search or visit our troubleshooting section to look for information about common error messages. If your installation fails and you are unable to resolve the problem by retrying, please contact support@enclave.io.