Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transit from docker to k8s #2

Open
Cindia-blue opened this issue Jun 11, 2019 · 3 comments
Open

Transit from docker to k8s #2

Cindia-blue opened this issue Jun 11, 2019 · 3 comments

Comments

@Cindia-blue
Copy link

When I use k8s to deploy epc, I got below error with the same image, could you share hints about that?

Reading configuration file epc.conf...
HSS Initialized.
MME GTP-C Initialized
MME Initialized.
Could not initialize the SGi interface.
Error initializing SP-GW

@Cindia-blue
Copy link
Author

how to translate the devices through h8s yml

devices:
- /dev/net/tun

@pgorczak
Copy link
Owner

pgorczak commented Jun 13, 2019

I know almost nothing about k8s but I found an example on how to make sure the /dev/net/tun special file exists within the pod (although for use with OpenVPN).

Tl;dr they added a startup script containing this

mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun

Can you make it work like this?

@rafis
Copy link

rafis commented Jul 6, 2020

Translating this to k8s language you need to add the following to your deployment manifest:

        volumeMounts:
        - mountPath: /dev/net/tun
          name: dev-tun
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_NICE
      volumes:
      - hostPath:
          path: /dev/net/tun
          type: CharDevice
        name: dev-tun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants