feat: split up kubernetes yamls
This commit is contained in:
parent
a9a4e912f4
commit
6db804cdc1
3 changed files with 55 additions and 31 deletions
39
kube/deployment.yaml
Normal file
39
kube/deployment.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: minecraft-ingress
|
||||
labels:
|
||||
app: minecraft-ingress
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: minecraft-ingress
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: minecraft-ingress
|
||||
spec:
|
||||
serviceAccountName: minecraft-ingress
|
||||
terminationGracePeriodSeconds: 5
|
||||
containers:
|
||||
- name: minecraft-ingress
|
||||
image: git.tami.moe/tamipes/minecraft-ingress:testing
|
||||
env:
|
||||
- name: FILTER_CONN
|
||||
value: '(addr == "87.229.85.222") || (addr == "") || (addr == "ogmur.xyz") || (addr == "@mat:matdoes.dev (hi honeypots) ") || (addr == "@mat:matdoes.dev ") || (addr == "slowstack.tv")'
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: minecraft-ingress
|
||||
labels:
|
||||
app: minecraft-ingress
|
||||
spec:
|
||||
ports:
|
||||
- name: minecraft-ingress
|
||||
port: 25565
|
||||
nodePort: 30565
|
||||
selector:
|
||||
app: minecraft-ingress
|
||||
type: NodePort
|
||||
Loading…
Add table
Add a link
Reference in a new issue