Skip to content

Commit

Permalink
Kubernetesマニフェスト書いた
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Nov 27, 2023
1 parent 346e7c0 commit 1b83126
Show file tree
Hide file tree
Showing 3 changed files with 38 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
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 1b83126

Please sign in to comment.