-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1395 from GiganticMinecraft/add-discord_bot-idea_…
…reaction feat: idea-reaction の Pod を追加
- Loading branch information
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...anifests/seichi-kubernetes/apps/seichi-minecraft/common-configs/idea-reaction-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
matadata: | ||
name: idea-reaction-config | ||
data: | ||
config.yaml: | | ||
reactions: ["👍", "👎"] |
46 changes: 46 additions & 0 deletions
46
...np-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/idea-reaction/idea-reaction.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: idea-reaction | ||
namespace: seichi-minecraft | ||
labels: | ||
app: idea-reaction | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: idea-reaction | ||
template: | ||
metadata: | ||
labels: | ||
app: idea-reaction | ||
spec: | ||
- name: idea-reaction | ||
image: ghcr.io/giganticminecraft/idea-reaction:42a57b77637240c64672a6a64cc909a0c50509fa | ||
resources: | ||
requests: | ||
cpu: 250m | ||
memory: 16Mi | ||
limits: | ||
cpu: 500m | ||
memory: 32Mi | ||
volumeMounts: | ||
- name: idea-reaction-config-volume | ||
mountPath: /home/idea-reaction/assets/config.yaml | ||
env: | ||
- name: TARGET_CHANNEL_ID | ||
value: "959292335177486367" | ||
# Webhook ID は Webhook の UserId と同一のため, 公開情報になる. | ||
- name: TARGET_WEBHOOK_ID | ||
value: "959307225413845072" | ||
- name: TARGET_GUILD_ID | ||
value: "237758724121427969" | ||
- name: DISCORD_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: idea-reaction-discord-token | ||
key: IDEA_REACTION_DISCORD_TOKEN | ||
volumes: | ||
- name: idea-reaction-config-volume | ||
configMap: | ||
name: idea-reaction-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters