surf
This commit is contained in:
parent
15f2d34bc8
commit
4912af93dd
@ -11,4 +11,5 @@ spec:
|
|||||||
version: 2.17.3
|
version: 2.17.3
|
||||||
targetNamespace: kube-system
|
targetNamespace: kube-system
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
|
# lets you use cli without speciying name
|
||||||
fullnameOverride: sealed-secrets-controller
|
fullnameOverride: sealed-secrets-controller
|
||||||
|
|||||||
@ -17,8 +17,8 @@ spec:
|
|||||||
- host: spacerace.ntwl.xyz
|
- host: spacerace.ntwl.xyz
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /api(/|$)(.*)
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: spacerace-api
|
name: spacerace-api
|
||||||
|
|||||||
@ -97,33 +97,34 @@ spec:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
# kind: Deployment
|
kind: Deployment
|
||||||
# metadata:
|
metadata:
|
||||||
# name: spacerace-api
|
name: spacerace-api
|
||||||
# namespace: spacerace
|
namespace: spacerace
|
||||||
# spec:
|
spec:
|
||||||
# replicas: 1
|
replicas: 1
|
||||||
# selector:
|
selector:
|
||||||
# matchLabels:
|
matchLabels:
|
||||||
# app: spacerace-api
|
app: spacerace-api
|
||||||
# template:
|
template:
|
||||||
# metadata:
|
metadata:
|
||||||
# labels:
|
labels:
|
||||||
# app: spacerace-api
|
app: spacerace-api
|
||||||
# spec:
|
spec:
|
||||||
# containers:
|
containers:
|
||||||
# - name: spacerace-api
|
- name: spacerace-api
|
||||||
# image: registry.ntwl.xyz/spacerace-api
|
image: registry.ntwl.xyz/spacerace-api
|
||||||
# imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
# ports:
|
ports:
|
||||||
# - containerPort: 80
|
- containerPort: 80
|
||||||
# env:
|
env:
|
||||||
# - name: CONNECTIONSTRINGS__SPACERACE
|
- name: CONNECTIONSTRINGS__SPACERACE
|
||||||
# valueFrom:
|
valueFrom:
|
||||||
# secretKeyRef:
|
secretKeyRef:
|
||||||
# name: spacerace
|
name: spacerace
|
||||||
# key: CONNECTIONSTRINGS__SPACERACE
|
key: CONNECTIONSTRINGS__SPACERACE
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# -----------------------------------------------------------------------
|
# -----------------------------------------------------------------------
|
||||||
|
|||||||
76
surf/mariadb.yaml
Executable file
76
surf/mariadb.yaml
Executable file
@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mariadb
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mariadb
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mariadb
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mariadb
|
||||||
|
image: mariadb:12
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 3306
|
||||||
|
env:
|
||||||
|
- name: MYSQL_ROOT_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: surf
|
||||||
|
key: MYSQL_ROOT_PASSWORD
|
||||||
|
- name: MYSQL_DATABASE
|
||||||
|
value: "shavit"
|
||||||
|
volumeMounts:
|
||||||
|
- name: mariadb-data
|
||||||
|
mountPath: /var/lib/mysql
|
||||||
|
volumes:
|
||||||
|
- name: mariadb-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: mariadb-data
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# SERVICE
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mariadb
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: mariadb
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 3306
|
||||||
|
targetPort: 3306
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# VOLUMES
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: mariadb-data
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
storageClassName: zfs-fast
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
|
||||||
115
surf/megastructure-surf.yaml
Executable file
115
surf/megastructure-surf.yaml
Executable file
@ -0,0 +1,115 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: surf
|
||||||
|
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# VOLUMES
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: cssds-data
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
storageClassName: zfs-fast
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tf2ds-data
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
storageClassName: zfs-fast
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# DEPLOYMENT
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: megastructure-surf
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: megastructure-surf
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: megastructure-surf
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: megastructure-surf
|
||||||
|
image: registry.ntwl.xyz/megastructure-surf
|
||||||
|
imagePullPolicy: Always
|
||||||
|
command: ["sleep", "100000000"]
|
||||||
|
ports:
|
||||||
|
- containerPort: 27015
|
||||||
|
- containerPort: 27005
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: surf
|
||||||
|
volumeMounts:
|
||||||
|
- name: cssds
|
||||||
|
mountPath: /home/steam/cssds
|
||||||
|
- name: tf2ds
|
||||||
|
mountPath: /home/steam/tf2ds
|
||||||
|
volumes:
|
||||||
|
- name: cssds
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: cssds-data
|
||||||
|
- name: tf2ds
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: tf2ds-data
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# SERVICES
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: megastructure-surf
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: megastructure-surf
|
||||||
|
ports:
|
||||||
|
- name: game-port
|
||||||
|
protocol: UDP
|
||||||
|
port: 27015
|
||||||
|
targetPort: 27015
|
||||||
|
nodePort: 32015
|
||||||
|
- name: client-port
|
||||||
|
protocol: UDP
|
||||||
|
port: 27005
|
||||||
|
targetPort: 27005
|
||||||
|
nodePort: 32005
|
||||||
|
|
||||||
|
---
|
||||||
Loading…
x
Reference in New Issue
Block a user