Skip to main content

Kubernetes

Examples

Deploy opctl in kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
name: opctl-in-kubernetes
spec:
replicas: 1
template:
spec:
containers:
- name: opctl
image: opctl/opctl:0.1.48-dind
ports:
# expose to other containers
- name: http
containerPort: 42224
protocol: TCP
securityContext:
privileged: true