Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Jan 5, 2024
1 parent 36386bb commit 74e0612
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 71 deletions.
18 changes: 0 additions & 18 deletions infra/k8s/web/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
{{- if .Values.ingress.enabled }}

1. Misskeyがデプロイされました。以下のURLでアクセスできます:

https://{{ index .Values.ingress.hosts 0 "host" }}/

2. テストを実行してサービスの接続を確認します:

helm test {{ .Release.Name }}

{{- else }}

Misskeyがデプロイされました。クラスター内から以下のコマンドを使用してアクセスします:

POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "web.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME {{ .Values.service.port }}:3000

{{- end }}
26 changes: 0 additions & 26 deletions infra/k8s/web/templates/ingress.yaml

This file was deleted.

16 changes: 9 additions & 7 deletions infra/k8s/web/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{{- if eq .Values.service.type "NodePort" }}
apiVersion: v1
kind: Service
metadata:
name: web-svc
name: {{ include "web.fullname" . }}
labels:
{{- include "web.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 3000
protocol: TCP
name: http
type: NodePort
selector:
{{- include "web.selectorLabels" . | nindent 4 }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
14 changes: 5 additions & 9 deletions infra/k8s/web/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
port: 3000
volumeMounts:
- name: config
mountPath: /etc/config
- mountPath: /misskey/.config
name: misskey-default-conf-file
volumes:
- name: config
- name: misskey-default-conf-file
configMap:
name: {{ include "web.fullname" . }}-config
name: misskey-default-config
14 changes: 3 additions & 11 deletions infra/k8s/web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,9 @@ image:
pullPolicy: Always

service:
type: ClusterIP
port: 80

ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "200m"
hosts:
- host: example.na2na.dev
paths:
- /
type: NodePort
port: 3000
nodePort: 30000

resources: {}

Expand Down

0 comments on commit 74e0612

Please sign in to comment.