Reset git history for making manifests public
This commit is contained in:
46
netbootxyz/httproute.yaml
Normal file
46
netbootxyz/httproute.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: netbootxyz-route
|
||||
namespace: netbootxyz
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: gateway-internal
|
||||
namespace: envoy-gateway
|
||||
sectionName: netbootxyz
|
||||
hostnames:
|
||||
- "netboot.jsme.be"
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
filters:
|
||||
- type: RequestHeaderModifier
|
||||
requestHeaderModifier:
|
||||
set:
|
||||
- name: X-Forwarded-Host
|
||||
value: "netboot.jsme.be"
|
||||
- name: X-Forwarded-Proto
|
||||
value: https
|
||||
- type: ResponseHeaderModifier
|
||||
responseHeaderModifier:
|
||||
set:
|
||||
- name: Strict-Transport-Security
|
||||
value: "max-age=31536000; includeSubDomains"
|
||||
- name: X-Content-Type-Options
|
||||
value: nosniff
|
||||
- name: X-Frame-Options
|
||||
value: SAMEORIGIN
|
||||
- name: Referrer-Policy
|
||||
value: strict-origin-when-cross-origin
|
||||
- name: Permissions-Policy
|
||||
value: "camera=(), microphone=(), geolocation=(), payment=()"
|
||||
backendRefs:
|
||||
- name: netbootxyz
|
||||
port: 3000
|
||||
kind: Service
|
||||
group: ""
|
||||
weight: 1
|
||||
26
netbootxyz/netbootxyz-pvc.yaml
Normal file
26
netbootxyz/netbootxyz-pvc.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: netbootxyz-config-pvc
|
||||
namespace: netbootxyz
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn-static
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
namespace: netbootxyz
|
||||
name: netbootxyz-assets-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
volumeName: netbootxyz-assets-pv
|
||||
storageClassName: ""
|
||||
22
netbootxyz/netbootxyz-smb.yaml
Normal file
22
netbootxyz/netbootxyz-smb.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: netbootxyz-assets-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
mountOptions:
|
||||
- dir_mode=0700
|
||||
- file_mode=0700
|
||||
- noperm
|
||||
csi:
|
||||
driver: smb.csi.k8s.io
|
||||
volumeHandle: containers
|
||||
volumeAttributes:
|
||||
source: "//10.8.14.2/containers"
|
||||
nodeStageSecretRef:
|
||||
name: netbootxyz-secrets
|
||||
namespace: netbootxyz
|
||||
60
netbootxyz/netbootxyz-stateful.yaml
Normal file
60
netbootxyz/netbootxyz-stateful.yaml
Normal file
@@ -0,0 +1,60 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
namespace: netbootxyz
|
||||
name: netbootxyz
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: netbootxyz
|
||||
serviceName: netbootxyz
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: netbootxyz
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 10
|
||||
containers:
|
||||
- name: netbootxyz
|
||||
image: netbootxyz/netbootxyz:0.7.6-nbxyz18
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: netbootxyz-config
|
||||
mountPath: /config
|
||||
- name: netbootxyz-assets
|
||||
mountPath: /assets
|
||||
subPath: Netbootxyz
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: web
|
||||
protocol: TCP
|
||||
- containerPort: 80
|
||||
name: nginx
|
||||
protocol: TCP
|
||||
- containerPort: 69
|
||||
name: tftp
|
||||
protocol: UDP
|
||||
env:
|
||||
- name: TFTPD_OPTS
|
||||
value: "--tftp-single-port"
|
||||
- name: MENU_VERSION
|
||||
value: "3.0.0"
|
||||
- name: NGINX_PORT
|
||||
value: "80"
|
||||
- name: WEB_APP_PORT
|
||||
value: "3000"
|
||||
volumes:
|
||||
- name: netbootxyz-config
|
||||
persistentVolumeClaim:
|
||||
claimName: netbootxyz-config-pvc
|
||||
- name: netbootxyz-assets
|
||||
persistentVolumeClaim:
|
||||
claimName: netbootxyz-assets-pvc
|
||||
35
netbootxyz/netbootxyz-svc.yaml
Normal file
35
netbootxyz/netbootxyz-svc.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: netbootxyz-loadbalancer
|
||||
namespace: netbootxyz
|
||||
annotations:
|
||||
metallb.universe.tf/loadBalancerIPs: "10.8.11.103"
|
||||
spec:
|
||||
ports:
|
||||
- name: netbootxyz-dhcp-udp
|
||||
port: 69
|
||||
targetPort: 69
|
||||
protocol: UDP
|
||||
- name: netbootxyz-nginx-tcp
|
||||
port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: netbootxyz
|
||||
type: LoadBalancer
|
||||
externalTrafficPolicy: Local
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: netbootxyz
|
||||
namespace: netbootxyz
|
||||
spec:
|
||||
selector:
|
||||
app: netbootxyz
|
||||
ports:
|
||||
- name: netbootxyz-webpage
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user