Last active
February 3, 2024 14:32
-
-
Save sr229/6272521bcf82c32495519d87a4f5a5a4 to your computer and use it in GitHub Desktop.
Mysterium dVPN Node Kubernetes config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
seems like it connected but I got an empty browser