Skip to content

Instantly share code, notes, and snippets.

@sr229
Last active December 16, 2024 16:07
Show Gist options
  • Select an option

  • Save sr229/6272521bcf82c32495519d87a4f5a5a4 to your computer and use it in GitHub Desktop.

Select an option

Save sr229/6272521bcf82c32495519d87a4f5a5a4 to your computer and use it in GitHub Desktop.
Mysterium dVPN Node Kubernetes config
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysterium-dvpn-node
spec:
replicas: 1
selector:
matchLabels:
app: mysterium-dvpn-node
template:
metadata:
labels:
app: mysterium-dvpn-node
spec:
containers:
- name: mysterium-dvpn-node
image: docker.io/mysteriumnetwork/myst:latest
ports:
- containerPort: 4449
securityContext:
privileged: true
capabilities:
add:
- NET_ADMIN
command: ["/usr/local/bin/docker-entrypoint.sh", "service", "--agreed-terms-and-conditions" ]
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 2
memory: 2048Mi
volumeMounts:
- name: mysterium-dvpn-node-pvc
mountPath: /var/lib/mysterium-node
volumes:
- name: mysterium-dvpn-node-pvc
persistentVolumeClaim:
claimName: mysterium-dvpn-node-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysterium-dvpn-node-pvc
spec:
storageClassName: local-path
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: mysterium-dvpn-node-svc
spec:
ports:
- name: http
port: 4449
selector:
app: mysterium-dvpn-node
---
# We're assuming our user is using Traefik here, but we may want to make this into a helm chart instead
# if we're ever going to publish this to the marketplace at Civo.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: mysterium-dvpn-node-ingress
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: mysterium.example.com
http:
paths:
- path: /
backend:
serviceName: mysterium-dvpn-node-svc
servicePort: http
@jakub8109
Copy link

@phamduchongan93 did you manage to get it working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment