added working browser with proxy

This commit is contained in:
2025-04-02 23:09:26 +03:00
parent 27d24e5b1d
commit df8facd70b
9 changed files with 578 additions and 81 deletions

View File

@@ -41,23 +41,9 @@ spec:
properties:
browser:
properties:
image:
type: string
"on":
type: boolean
port:
properties:
port:
format: int32
type: integer
protocol:
description: Protocol defines network protocols supported
for things like container ports.
type: string
type: object
type: object
id:
type: string
server:
description: |-
INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
@@ -113,13 +99,16 @@ spec:
host_ports:
items:
properties:
port:
host_port:
format: int32
type: integer
protocol:
description: Protocol defines network protocols supported
for things like container ports.
type: string
target_port:
format: int32
type: integer
type: object
type: array
running:

View File

@@ -0,0 +1,51 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: '[]'
capabilities: Basic Install
name: kubernetes-operator.v0.0.0
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: ServerManager is the Schema for the servermanagers API
displayName: Server Manager
kind: ServerManager
name: servermanagers.server-manager.acooldomain.co
version: v1alpha1
description: An operator that manages game servers and relevant resources
displayName: server-manager-operator
icon:
- base64data: ""
mediatype: ""
install:
spec:
deployments: null
strategy: ""
installModes:
- supported: false
type: OwnNamespace
- supported: false
type: SingleNamespace
- supported: false
type: MultiNamespace
- supported: true
type: AllNamespaces
keywords:
- game-servers
- filebrowser
- manager
- games
links:
- name: Kubernetes Operator
url: https://kubernetes-operator.domain
maintainers:
- email: acoolname@acooldomain.co
name: acoolname
maturity: alpha
provider:
name: server-manager-provider
url: https://git.acooldomain.co/server-manager/kubernetes-operator
version: 0.0.0

View File

@@ -4,6 +4,24 @@ kind: ClusterRole
metadata:
name: manager-role
rules:
- resources:
- persistentvolumeclaims
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- resources:
- pods
verbs:
- create
- get
- list
- watch
- apiGroups:
- server-manager.acooldomain.co
resources:
@@ -30,3 +48,15 @@ rules:
- get
- patch
- update
- apiGroups:
- traefik.io
resources:
- ingressroutes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch

62
config/role/role.yaml Normal file
View File

@@ -0,0 +1,62 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: manager-role
rules:
- resources:
- persistentvolumeclaims
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- resources:
- pods
verbs:
- create
- get
- list
- watch
- apiGroups:
- server-manager.acooldomain.co
resources:
- servermanagers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- server-manager.acooldomain.co
resources:
- servermanagers/finalizers
verbs:
- update
- apiGroups:
- server-manager.acooldomain.co
resources:
- servermanagers/status
verbs:
- get
- patch
- update
- apiGroups:
- traefik.io
resources:
- ingressroutes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch

View File

@@ -6,8 +6,9 @@ metadata:
app.kubernetes.io/managed-by: kustomize
name: servermanager-sample
spec:
id: test-serverr
storage: 10Gi
browser:
"on": true
server:
"on": true
image: git.acooldomain.co/server-manager/minecraft:paper-1.21.4