mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-24 17:00:22 +00:00
Add latest video
This commit is contained in:
parent
44c454f03b
commit
b57b7b31c1
8 changed files with 201 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: default-headers
|
||||
namespace: portainer
|
||||
spec:
|
||||
headers:
|
||||
browserXssFilter: true
|
||||
contentTypeNosniff: true
|
||||
forceSTSHeader: true
|
||||
stsIncludeSubdomains: true
|
||||
stsPreload: true
|
||||
stsSeconds: 15552000
|
||||
customFrameOptionsValue: SAMEORIGIN
|
||||
customRequestHeaders:
|
||||
X-Forwarded-Proto: https
|
28
Kubernetes/Create-manifest-helm/Portainer/ingress.yaml
Normal file
28
Kubernetes/Create-manifest-helm/Portainer/ingress.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: portainer
|
||||
namespace: portainer
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-external
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`www.portainer.yourdomain.com`) # change me
|
||||
kind: Rule
|
||||
services:
|
||||
- name: portainer
|
||||
port: 9443
|
||||
- match: Host(`portainer.yourdomain.com`) # change me
|
||||
kind: Rule
|
||||
services:
|
||||
- name: portainer
|
||||
port: 9443
|
||||
scheme: https
|
||||
passHostHeader: true
|
||||
middlewares:
|
||||
- name: default-headers
|
||||
tls:
|
||||
secretName: yourdomain-tls # change me
|
10
Kubernetes/Create-manifest-helm/Portainer/values.yaml
Normal file
10
Kubernetes/Create-manifest-helm/Portainer/values.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
nodeSelector:
|
||||
worker: "true"
|
||||
|
||||
service:
|
||||
enabled: true
|
||||
type: LoadBalancer
|
||||
annotations: {}
|
||||
labels: {}
|
||||
loadBalancerSourceRanges: []
|
||||
externalIPs: []
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: default-headers
|
||||
namespace: wg-easy
|
||||
spec:
|
||||
headers:
|
||||
browserXssFilter: true
|
||||
contentTypeNosniff: true
|
||||
forceSTSHeader: true
|
||||
stsIncludeSubdomains: true
|
||||
stsPreload: true
|
||||
stsSeconds: 15552000
|
||||
customFrameOptionsValue: SAMEORIGIN
|
||||
customRequestHeaders:
|
||||
X-Forwarded-Proto: https
|
|
@ -0,0 +1,91 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: wg-easy
|
||||
app.kubernetes.io/instance: wg-easy
|
||||
app.kubernetes.io/name: wg-easy
|
||||
name: wg-easy
|
||||
namespace: wg-easy
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wg-easy
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wg-easy
|
||||
app.kubernetes.io/name: wg-easy
|
||||
spec:
|
||||
nodeSelector:
|
||||
worker: "true"
|
||||
# securityContext:
|
||||
# sysctls:
|
||||
# - name: net.ipv4.ip_forward
|
||||
# value: "1"
|
||||
# - name: net.ipv4.conf.all.src_valid_mark
|
||||
# value: "1"
|
||||
containers:
|
||||
- env:
|
||||
- name: WG_HOST
|
||||
value: "wg.yourdomain.com" # change me
|
||||
- name: PASSWORD
|
||||
value: "password!"
|
||||
- name: WG_DEFAULT_DNS
|
||||
value: "10.43.0.10, wg-easy.svc.cluster.local"
|
||||
image: weejewel/wg-easy
|
||||
imagePullPolicy: Always
|
||||
name: wg-easy
|
||||
ports:
|
||||
- containerPort: 51820
|
||||
- containerPort: 51821
|
||||
resources: {}
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
volumeMounts:
|
||||
- mountPath: /etc/wireguard
|
||||
name: wg-easy
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: wg-easy
|
||||
persistentVolumeClaim:
|
||||
claimName: wg-easy
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: wg-easy
|
||||
name: wg-easy-udp
|
||||
namespace: wg-easy
|
||||
spec:
|
||||
ports:
|
||||
- name: wg-easy-udp
|
||||
port: 51820
|
||||
protocol: UDP
|
||||
targetPort: 51820
|
||||
selector:
|
||||
app: wg-easy
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: wg-easy
|
||||
name: wg-easy-web
|
||||
namespace: wg-easy
|
||||
spec:
|
||||
ports:
|
||||
- name: wg-easy-web
|
||||
port: 51821
|
||||
protocol: TCP
|
||||
targetPort: 51821
|
||||
selector:
|
||||
app: wg-easy
|
||||
type: ClusterIP
|
26
Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml
Normal file
26
Kubernetes/Create-manifest-helm/WireGuard-Easy/ingress.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wg-easy
|
||||
namespace: wg-easy
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-external
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`www.wg-easy.yourdomain.com`) # change me
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wg-easy-web
|
||||
port: 51821
|
||||
- match: Host(`wg-easy.yourdomain.com`) # change me
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wg-easy-web
|
||||
port: 51821
|
||||
middlewares:
|
||||
- name: default-headers
|
||||
tls:
|
||||
secretName: yourdomain-tls # change me
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRouteUDP
|
||||
metadata:
|
||||
name: wg-easy
|
||||
namespace: wg-easy
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik-external
|
||||
spec:
|
||||
entryPoints:
|
||||
- wireguard
|
||||
routes:
|
||||
- services:
|
||||
- name: wg-easy-udp
|
||||
port: 51820
|
0
Kubernetes/Create-manifest-helm/readme.md
Normal file
0
Kubernetes/Create-manifest-helm/readme.md
Normal file
Loading…
Reference in a new issue