wip 3
This commit is contained in:
parent
a8311bb8ca
commit
2244bc6c0d
1 changed files with 50 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: minecraft-ingress
|
||||||
|
namespace: default
|
||||||
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -6,7 +12,21 @@ metadata:
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""] # "" indicates the core API group
|
- apiGroups: [""] # "" indicates the core API group
|
||||||
resources: ["pods","deployments","services"]
|
resources: ["pods","deployments","services"]
|
||||||
verbs: ["get", "list"]
|
verbs: ["get", "list", "patch", "watch"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: minecraft-ingress
|
||||||
|
namespace: default
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: minecraft-ingress
|
||||||
|
namespace: default
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: minecraft-ingress
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
@ -17,4 +37,32 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels
|
matchLabels:
|
||||||
|
app: minecraft-ingress
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: minecraft-ingress
|
||||||
|
spec:
|
||||||
|
serviceAccountName: minecraft-ingress
|
||||||
|
containers:
|
||||||
|
- name: minecraft-ingress
|
||||||
|
image: git.tami.moe/tamipes/minecraft-ingress:latest
|
||||||
|
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:
|
||||||
|
server: minecraft-ingress
|
||||||
|
type: NodePort
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue