-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
112 additions
and
6 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
# create separate namespace | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: tg-feedback-namespace |
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,43 @@ | ||
# create config map | ||
# for config.yaml | ||
# and cookies.txt (optional) | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: tg-feedback-config | ||
namespace: tg-feedback-namespace | ||
data: | ||
config.yaml: | | ||
bot: | ||
# get bot token from https://t.me/botfather | ||
token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
# chat id for redirect messages | ||
chat_id: -100XXXXXXXXXXXXX | ||
# Fill variables below as you want, or use default values. | ||
# You can use HTML tags provided by the sulguk package. | ||
# https://github.com/Tishka17/sulguk#readme | ||
#messages: | ||
# notify_user_about_success_deliver: ✅ Please wait for response. | ||
# help_message: | | ||
# <h1> | ||
# 👋 Hello! | ||
# </h1> | ||
# <p> | ||
# I can redirect to recipient <b>text, audios, voice messages, images, files</b> to recipient. | ||
# </p> | ||
# | ||
# <p> | ||
# Just send your message and wait for a response! | ||
# </p> | ||
# notify_admin_about_success_answer: ✅ Answered. | ||
# | ||
#errors: | ||
# unsupported_type: ❌ Unsupported message type.<br/>Please check <b>/help</b> command. | ||
# too_long_message_text: ❌ Too long message text. | ||
# too_long_message_caption: ❌ Too long message caption. | ||
# copy_message: ❌ Error during copying | ||
# extract_user_id: ❌ Error during extract_id | ||
# chat_not_found: ❌ Chat not found. Make sure you have added the bot to the admin group |
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,40 @@ | ||
# create deployment | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: tg-feedback | ||
namespace: tg-feedback-namespace | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: tg-feedback | ||
template: | ||
metadata: | ||
labels: | ||
app: tg-feedback | ||
spec: | ||
containers: | ||
- name: tg-feedback | ||
image: bral1488/telegram-feedback-bot:main | ||
imagePullPolicy: Always | ||
command: ["sh", "-c", "python -m src"] | ||
volumeMounts: | ||
- name: config-volume | ||
mountPath: /app/config.yaml | ||
subPath: config.yaml | ||
readOnly: true | ||
resources: | ||
limits: | ||
memory: "64Mi" | ||
cpu: "125m" | ||
securityContext: | ||
runAsUser: 0 | ||
volumes: | ||
- name: config-volume | ||
configMap: | ||
name: tg-feedback-config | ||
tolerations: | ||
- key: "node.kubernetes.io/disk-pressure" | ||
operator: "Exists" | ||
effect: "NoSchedule" |
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