Skip to content

Feature request: add custom port options for Purevpn #1725

Open
@zbloss

Description

@zbloss

Is this urgent?

No

Host OS

Kubernetes v1.27

CPU arch

x86_64

VPN service provider

PureVPN

What are you using to run the container

Kubernetes

What is the version of Gluetun

Running version v3.35.0 built on 2023-06-28T13:06:38.000Z (commit 44bc60b)

What's the problem 🤔

When trying to deploy a kubernetes deployment with this image I'm getting an error in the VPN_ENDPOINT_PORT environment variable. It appears to be getting set as maybe the pod or node tcp ip address rather than just "8888"?

I have also tried manually overriding VPN_ENDPOINT_PORT as "8888" but it is not getting set from the deployment manifest.

Share your logs

========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================
Running version v3.35.0 built on 2023-06-28T13:06:38.000Z (commit 44bc60b)
🔧 Need help? https://github.com/qdm12/gluetun/discussions/new
🐛 Bug? https://github.com/qdm12/gluetun/issues/new
✨ New feature? https://github.com/qdm12/gluetun/issues/new
☕ Discussion? https://github.com/qdm12/gluetun/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2023-07-03T19:00:05-04:00 ERROR reading from environment variables: VPN provider: server selection: environment variable VPN_ENDPOINT_PORT: strconv.ParseUint: parsing "tcp://10.152.183.217:8888": invalid syntax
2023-07-03T19:00:05-04:00 INFO Shutdown successful

Share your configuration

--- deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: openvpn
  namespace: media
spec:
  selector:
    matchLabels:
      app: openvpn
  template:
    metadata:
      labels:
        app: "openvpn"
        sidecar.istio.io/inject: "false"
    spec:
      containers:
        - name: "openvpn"
          image: "qmcgaw/gluetun:v3.35.0"
          resources:
            limits:
              memory: "250Mi"
              cpu: "100m"
          ports:
            - containerPort: 57270
            - name: httpproxy
              containerPort: 8888
            - name: shadowsocks
              containerPort: 8388
            - name: controller
              containerPort: 8000
            - name: pprof
              containerPort: 6060
          envFrom:
          - secretRef:
              name: gluetun-secret 
          env:
            - name: TZ
              value: "America/New_York"
            - name: "VPN_SERVICE_PROVIDER"
              value: "purevpn"
            - name: "SERVER_COUNTRIES"
              value: "Netherlands,Germany,Belgium,Canada,Austria,France,Italy,Norway,Sweden,Switzerland"
            - name: "FIREWALL_OUTBOUND_SUBNETS"
              value: "192.168.86.0/24"
            - name: "FIREWALL_DEBUG"
              value: "on"
            - name: "FIREWALL_INPUT_PORTS"
              value: "9091"
          securityContext:
            privileged: true
            capabilities:
              add:
                - NET_ADMIN
--- gluetun-secret.yaml
apiVersion: v1
data:
  OPENVPN_PASSWORD: REDACTED
  OPENVPN_USER: REDACTED
kind: Secret
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"Secret","metadata":{"annotations":{},"name":"gluetun-secret","namespace":"media"},"stringData":{"OPENVPN_PASSWORD":"CwkhkoWMdiLnQM","OPENVPN_USER":"purevpn0s12534363"},"type":"Opaque"}
  creationTimestamp: "2023-07-03T22:14:43Z"
  name: gluetun-secret
  namespace: media
  resourceVersion: "14572740"
  uid: acacc07b-be72-48e8-a40c-25c70508ff8e
type: Opaque

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions