I want to run a kloudless docker image with the command below in kubernetes. Just wanted to know it there was any straightforward solution.
docker run -d \
--privileged
--tmpfs /run --tmpfs /run/lock --tmpfs /tmp \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--ulimit nofile=1024000:1024000 \
--sysctl net.ipv4.ip_local_port_range='1025 65535' \
--name kenterprise \
--env KLOUDLESS_CONFIG="$(cat kloudless.yml)" \
# [ports,/data volume|db config] \
docker.kloudless.com/prod:1.29.0 docker_entry
I know we can run docker image in kubernetes with similar configure by configuring the container in pod yaml. Example if I wanted to give --privileged argument I could
containers:
securityContext:
privileged: true
Just wanted to know if there are any straightforward way.