This commit is contained in:
syuilo 2022-02-19 21:14:58 +09:00
parent fe889adcfc
commit c953e3301d
3 changed files with 31 additions and 0 deletions

19
k8s/deployment.yaml Normal file
View File

@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: misskey
spec:
selector:
matchLabels:
app: misskey
replicas: 1
template:
metadata:
labels:
app: misskey
spec:
containers:
- name: misskey
image: okteto.dev/misskey:latest
ports:
- containerPort: 8080

11
k8s/service.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: misskey
spec:
type: LoadBalancer
ports:
- name: http
port: 8080
selector:
app: misskey

View File

@ -2,3 +2,4 @@ deploy:
- cp .config/example.yml .config/default.yml - cp .config/example.yml .config/default.yml
- cp .config/docker_example.env .config/docker.env - cp .config/docker_example.env .config/docker.env
- okteto build -t okteto.dev/misskey:${OKTETO_GIT_COMMIT} - okteto build -t okteto.dev/misskey:${OKTETO_GIT_COMMIT}
- kubectl apply -f k8s