Skip to content

Commit

Permalink
Kubernetesマニフェスト書いた
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Dec 4, 2023
1 parent 95d5e3a commit cf0d29f
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ coverage
built/
.env
.idea
configmap.yml
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ nodejs 20.9.0
pnpm 8.10.5
python 3.11.6
ffmpeg 6.1
kubectl 1.28.4
29 changes: 29 additions & 0 deletions infra/k8s/manifests/app-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jetdisc
spec:
replicas: 1
selector:
matchLabels:
app: jetdisc
strategy:
type: Recreate
template:
metadata:
labels:
app: jetdisc
environment: production
version: "1.0.0"
spec:
containers:
- name: jetdisc
image: na2na/jetdisc:preview
envFrom:
- configMapRef:
name: jetdisc-config
resources:
limits:
cpu: 500m
memory: 256Mi
restartPolicy: Always
8 changes: 8 additions & 0 deletions infra/k8s/manifests/configmap.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: jetdisc-config
data:
DISCORD_APP_TOKEN: ""
BOT_NAME: "2na2"
SET_COMMANDS_TARGET_SERVERS: ""

0 comments on commit cf0d29f

Please sign in to comment.