Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions slack-infra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Cluster resources to deploy the following apps from [kubernetes-sigs/slack-infra

- slack-event-log
- slack-moderator
- slack-moderator-words
- slack-welcomer
- slack-post-message
- slackin
Expand Down
4 changes: 4 additions & 0 deletions slack-infra/resources/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ spec:
backend:
serviceName: slack-post-message
servicePort: 80
- path: /infra/moderator-words/*
backend:
serviceName: slack-moderator-words
servicePort: 80
2 changes: 1 addition & 1 deletion slack-infra/resources/slack-event-log/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: slack-event-log
image: gcr.io/k8s-staging-slack-infra/slack-event-log:v20200612-1c5d751
image: gcr.io/k8s-staging-slack-infra/slack-event-log:v20210223-8525eb3
args:
- --config-path=/etc/slack-event-log/config.json
ports:
Expand Down
45 changes: 45 additions & 0 deletions slack-infra/resources/slack-moderator-words/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: slack-moderator-words
labels:
app: slack-moderator-words
spec:
replicas: 2
selector:
matchLabels:
app: slack-moderator-words
template:
metadata:
labels:
app: slack-moderator-words
spec:
containers:
- name: slack-moderator-words
image: gcr.io/k8s-staging-slack-infra/slack-moderator-words:v20210223-8525eb3
args:
- --config-path=/etc/slack-moderator-words/config.json
- --filter-config-path=/etc/filters/filters.yaml
ports:
- containerPort: 8080
protocol: TCP
env:
- name: PATH_PREFIX
value: /infra/moderator-words
volumeMounts:
- mountPath: /etc/slack-moderator-words
name: config
- mountPath: /etc/filters
name: filters
readinessProbe:
httpGet:
path: /healthz
scheme: HTTP
port: 8080
volumes:
- name: config
secret:
secretName: slack-moderator-words-config
- name: filters
configMap:
name: slack-moderator-words-filters
10 changes: 10 additions & 0 deletions slack-infra/resources/slack-moderator-words/filters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: slack-moderator-words-filters
data:
filters.yaml: |-
- triggers:
- guys
action: chat.postEphemeral
message: "May I suggest \"all\" instead of \"guys\" when addessing a group of people? Thank you. :slightly_smiling_face:"
12 changes: 12 additions & 0 deletions slack-infra/resources/slack-moderator-words/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Service
apiVersion: v1
metadata:
name: slack-moderator-words
spec:
selector:
app: slack-moderator-words
type: NodePort
ports:
- protocol: TCP
port: 80
targetPort: 8080
2 changes: 1 addition & 1 deletion slack-infra/resources/slack-moderator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: slack-moderator
image: gcr.io/k8s-staging-slack-infra/slack-moderator:v20200612-1c5d751
image: gcr.io/k8s-staging-slack-infra/slack-moderator:v20210223-8525eb3
args:
- --config-path=/etc/slack-moderator/config.json
ports:
Expand Down
2 changes: 1 addition & 1 deletion slack-infra/resources/slack-post-message/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: slack-post-message
image: gcr.io/k8s-staging-slack-infra/slack-post-message:v20200901-117c06f
image: gcr.io/k8s-staging-slack-infra/slack-post-message:v20210223-8525eb3
args:
- --config-path=/etc/slack-post-message/config.json
ports:
Expand Down
2 changes: 1 addition & 1 deletion slack-infra/resources/slack-welcomer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: slack-moderator
image: gcr.io/k8s-staging-slack-infra/slack-welcomer:v20200612-1c5d751
image: gcr.io/k8s-staging-slack-infra/slack-welcomer:v20210223-8525eb3
args:
- --config-path=/etc/slack-welcomer/config.json
- --message-path=/etc/welcome-message/welcome.md
Expand Down