fix(wg-easy) make the services configurable in wg-easy (#10206)

**Description**
Update wg-easy services to be configurable so the confs will have the
correct ports.

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Xstar97TheNoob 2023-07-07 14:42:46 -04:00 committed by GitHub
parent f7c3b42289
commit 39a321c61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 22 deletions

View File

@ -22,7 +22,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/wg-easy
- https://github.com/WeeJeWel/wg-easy
type: application
version: 4.0.15
version: 4.0.16
annotations:
truecharts.org/catagories: |
- networking

View File

@ -2,27 +2,7 @@ image:
repository: tccr.io/truecharts/wg-easy
pullPolicy: IfNotPresent
tag: latest@sha256:5cc96ad86c87fb2ebc7dab65fc5b190ff0dcce370d0b9afa4aa4b5b2580a5000
service:
main:
ports:
main:
targetPort: 51821
port: 51821
vpn:
enabled: true
ports:
vpn:
enabled: true
protocol: udp
port: 51820
targetPort: 51820
persistence:
config:
enabled: true
mountPath: "/etc/wireguard"
portal:
open:
enabled: true
securityContext:
container:
PUID: 0
@ -35,6 +15,20 @@ securityContext:
- NET_ADMIN
- NET_RAW
- SYS_MODULE
service:
main:
ports:
main:
port: 51821
vpn:
enabled: true
ports:
vpn:
enabled: true
protocol: udp
port: 51820
workload:
main:
podSpec:
@ -49,9 +43,20 @@ workload:
type: tcp
env:
WG_HOST: "localhost"
PORT: "{{ .Values.service.main.ports.main.port }}"
WG_PORT: "{{ .Values.service.vpn.ports.vpn.port }}"
WG_MTU: 1420
WG_PERSISTENT_KEEPALIVE: 0
WG_DEFAULT_ADDRESS: "10.8.0.x"
WG_DEFAULT_DNS: "1.1.1.1"
WG_ALLOWED_IPS: "0.0.0.0/0, ::/0"
PASSWORD: "secretpass"
persistence:
config:
enabled: true
mountPath: "/etc/wireguard"
portal:
open:
enabled: true