diff --git a/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/deployment.yaml b/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/deployment.yaml index 88f772222..47e5a61ce 100644 --- a/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/deployment.yaml +++ b/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/deployment.yaml @@ -1,26 +1,26 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: cloudflared-mcserver--{{ .Values.mcserver-name }} + name: cloudflared-mcserver--{{ .Values.MCServerName }} labels: - app: cloudflared-mcserver--{{ .Values.mcserver-name }} + app: cloudflared-mcserver--{{ .Values.MCServerName }} appgroup: cloudflared release-namespace: {{ Release.Namespace }} spec: replicas: 1 selector: matchLabels: - app: cloudflared-mcserver--{{ .Values.mcserver-name }} + app: cloudflared-mcserver--{{ .Values.MCServerName }} appgroup: cloudflared template: metadata: labels: - app: cloudflared-mcserver--{{ .Values.mcserver-name }} + app: cloudflared-mcserver--{{ .Values.MCServerName }} appgroup: cloudflared env: prod spec: containers: - - name: cloudflared-mcserver--{{ .Values.mcserver-name }} + - name: cloudflared-mcserver--{{ .Values.MCServerName }} image: cloudflare/cloudflared:2021.12.1 args: - access @@ -28,7 +28,7 @@ spec: - --loglevel - debug - --hostname - - mcserver--{{ .Values.mcserver-name }}.{{ .Values.subdomain }}.seichi.click + - mcserver--{{ .Values.MCServerName }}.{{ .Values.subdomain }}.seichi.click - --url - 0.0.0.0:25565 env: diff --git a/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/service.yaml b/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/service.yaml index 4d4d1b6eb..7417fa132 100644 --- a/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/service.yaml +++ b/helm-charts/proxy-kubernetes-cloudflared-mcserver/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: cloudflared-mcserver--{{ .Values.mcserver-name }} + name: cloudflared-mcserver--{{ .Values.MCServerName }} spec: type: ClusterIP ports: @@ -10,6 +10,6 @@ spec: protocol: TCP targetPort: 25565 selector: - app: cloudflared-mcserver--{{ .Values.mcserver-name }} + app: cloudflared-mcserver--{{ .Values.MCServerName }} appgroup: cloudflared release-namespace: {{ Release.Namespace }} diff --git a/helm-charts/proxy-kubernetes-cloudflared-mcserver/values.yaml b/helm-charts/proxy-kubernetes-cloudflared-mcserver/values.yaml index 1dac73b37..e96e174b5 100644 --- a/helm-charts/proxy-kubernetes-cloudflared-mcserver/values.yaml +++ b/helm-charts/proxy-kubernetes-cloudflared-mcserver/values.yaml @@ -1,5 +1,5 @@ # プロキシされる先のマインクラフトサーバーの識別子。 -mcserver-name: "s0" +MCServerName: "s0" # ホスト名の seichi.click 以下のサブドメイン名。 subdomain: "tcp-network" # この二つの設定で、プロキシ先の hostname が