mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-13 10:49:21 +00:00
♻️ refactor: migrate to Go Kubernetes operator
This commit is contained in:
@@ -28,7 +28,7 @@ spec:
|
||||
type: string
|
||||
- jsonPath: .status.readyReplicas
|
||||
name: Ready
|
||||
type: string
|
||||
type: integer
|
||||
- jsonPath: .status.endpoint
|
||||
name: Endpoint
|
||||
type: string
|
||||
|
||||
@@ -28,7 +28,7 @@ spec:
|
||||
type: string
|
||||
- jsonPath: .status.readyReplicas
|
||||
name: Ready
|
||||
type: string
|
||||
type: integer
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
|
||||
@@ -29,8 +29,6 @@ spec:
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: NODE_ENV
|
||||
value: production
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 8080
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: minikura-backend
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: minikura-backend-operator-resources
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "list", "create", "update", "delete"]
|
||||
- apiGroups: ["minikura.kirameki.cafe"]
|
||||
resources: ["minecraftservers", "reverseproxyservers"]
|
||||
verbs: ["get", "list", "create", "update", "delete"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: minikura-backend-operator-resources
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: minikura-backend-operator-resources
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: minikura-backend
|
||||
namespace: minikura
|
||||
Reference in New Issue
Block a user