wg-easy-helm-chart's People
wg-easy-helm-chart's Issues
Fail to deploy to k3s cluster
Hi! Thanks for the effort creating this chart. I was thinking about the same before stumbled upon your work.
I am trying to deploy it to k3s cluster via its custom Helm resource definition like this:
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: wg-easy
namespace: kube-system
spec:
chart: wg-easy
repo: "https://brandon099.github.io/wg-easy-helm-chart"
targetNamespace: kube-system
version: "0.1.8"
But the helm-install-wg-easy pod fails to install it with the following error:
CHART=$(sed -e "s/%{KUBERNETES_API}%/${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/g" <<< "${CHART}")
set +v -x
+ cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates/
+ update-ca-certificates
WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
+ '[' '' '!=' true ']'
+ export HELM_HOST=127.0.0.1:44134
+ HELM_HOST=127.0.0.1:44134
+ tiller --listen=127.0.0.1:44134 --storage=secret
+ helm_v2 init --skip-refresh --client-only --stable-repo-url https://charts.helm.sh/stable/
Creating /root/.helm
[main] 2021/12/11 21:01:47 Starting Tiller v2.16.10 (tls=false)
[main] 2021/12/11 21:01:47 GRPC listening on 127.0.0.1:44134
[main] 2021/12/11 21:01:47 Probes listening on :44135
[main] 2021/12/11 21:01:47 Storage driver is Secret
[main] 2021/12/11 21:01:47 Max history per release is 0
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://charts.helm.sh/stable/
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Not installing Tiller due to 'client-only' flag having been set
++ helm_v2 ls --all '^wg-easy$' --output json
++ jq -r '.Releases | length'
[storage] 2021/12/11 21:01:47 listing all releases with filter
+ EXIST=
+ '[' '' == 1 ']'
+ '[' '' == v2 ']'
+ shopt -s nullglob
+ helm_content_decode
+ set -e
+ ENC_CHART_PATH=/chart/wg-easy.tgz.base64
+ CHART_PATH=/wg-easy.tgz
+ '[' '!' -f /chart/wg-easy.tgz.base64 ']'
+ return
+ '[' install '!=' delete ']'
+ helm_repo_init
+ grep -q -e 'https\?://'
+ '[' helm_v3 == helm_v3 ']'
+ [[ wg-easy == stable/* ]]
+ '[' -n https://brandon099.github.io/wg-easy-helm-chart ']'
+ helm_v3 repo add wg-easy https://brandon099.github.io/wg-easy-helm-chart
"wg-easy" has been added to your repositories
+ helm_v3 repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "wg-easy" chart repository
Update Complete. ⎈Happy Helming!⎈
+ helm_update install --namespace kube-system --repo https://brandon099.github.io/wg-easy-helm-chart --version 0.1.8
+ '[' helm_v3 == helm_v3 ']'
++ helm_v3 ls -f '^wg-easy$' --namespace kube-system --output json
++ jq -r '"\(.[0].app_version),\(.[0].status)"'
++ tr '[:upper:]' '[:lower:]'
+ LINE=null,null
++ echo null,null
++ cut -f1 -d,
+ INSTALLED_VERSION=null
++ echo null,null
++ cut -f2 -d,
+ STATUS=null
+ VALUES=
+ '[' install = delete ']'
+ '[' -z null ']'
+ '[' null = deployed ']'
+ '[' null = failed ']'
+ '[' null = deleted ']'
+ helm_v3 install --namespace kube-system --repo https://brandon099.github.io/wg-easy-helm-chart --version 0.1.8 wg-easy wg-easy
Error: YAML parse error on wg-easy/templates/deployment.yaml: error converting YAML to JSON: yaml: line 73: did not find expected '-' indicator
I've forked this project for further investigation of the issue, but maybe you've already faced it and know what is the problem? Will be appreciated for any help.
Ingress should also expose UDP port 51820 right?
Shouldn't the ingress definition at https://github.com/brandon099/wg-easy-helm-chart/blob/main/charts/wg-easy/templates/ingress.yaml also expose UDP 51820
?
My problem is the web dashboard has an ingress which is great and working as expected, but I believe the service wg-easy-wg
also needs to be exposed outside of Kubernetes right?
pi@kube-master:~ $ kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 87d
traefik LoadBalancer 10.103.222.27 10.0.0.90 80:30041/TCP,443:30133/TCP 21h
wg-easy-web ClusterIP 10.105.230.37 <none> 51821/TCP 21h
wg-easy-wg ClusterIP 10.103.58.64 <none> 51820/UDP 21h
pi@kube-master:~ $ kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
wg-easy <none> vpn.hooli.xyz 80, 443 21h
missing required field "paths" in io.k8s.api.networking.v1.HTTPIngressRuleValue
My values file:
persistence:
enabled: true
size: 1Gi
wireguard:
host: vpn.hooli.xyz
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik
kubernetes.io/tls-acme: "true"
hosts:
- host: vpn.hooli.xyz
paths: []
tls:
- hosts:
- vpn.hooli.xyz
Install command:
helm install wg-easy --values values.yaml wg-easy/wg-easy
Error:
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http): missing required field "paths" in io.k8s.api.networking.v1.HTTPIngressRuleValue
Versions:
Chart: 0.1.14
Helm: 3.8.0
Kubernetes: v1.23.0
Problem with Web UI
There is a problem with Web UI. When I try to open webpage I got an error message:
Unexpected non-whitespace character after JSON at position 4
and webpage is not loading.
On docker installation everything is working correctly.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.