Update all-in-one deploy yamls for Teams support (#346)

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

##### ISSUE TYPE

 - Docs Pull Request

##### SUMMARY

- Update all-in-one yamls for Teams support
- Add sample res config for custom resources
This commit is contained in:
Prasad Ghangal 2020-09-26 19:49:40 +05:30 committed by GitHub
parent 075e92d6a5
commit bf6f4d5e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 136 additions and 43 deletions

View File

@ -281,7 +281,7 @@ stringData:
appPassword: 'APPLICATION_PASSWORD'
notiftype: short
port: 3978
# Settings for Webhook
webhook:
enabled: false
@ -389,3 +389,41 @@ spec:
securityContext:
runAsUser: 101
runAsGroup: 101
---
## Uncomment following resources for Teams support
#apiVersion: v1
#kind: Service
#metadata:
# name: botkube
# labels:
# app: botkube
#spec:
# type: ClusterIP
# ports:
# - name: "teams"
# port: 3978
# selector:
# app: botkube
#---
## Source: botkube/templates/ingress.yaml
#apiVersion: extensions/v1beta1
#kind: Ingress
#metadata:
# name: botkube
# labels:
# app: botkube
# annotations:
# kubernetes.io/ingress.class: nginx
#spec:
# tls:
# - hosts:
# - HOST
# secretName: TLS_SECRET_NAME
# rules:
# - http:
# paths:
# - path: URLPATH
# backend:
# serviceName: botkube
# servicePort: 3978
# host: HOST

View File

@ -374,3 +374,41 @@ spec:
securityContext:
runAsUser: 101
runAsGroup: 101
---
## Uncomment following resources for Teams support
#apiVersion: v1
#kind: Service
#metadata:
# name: botkube
# labels:
# app: botkube
#spec:
# type: ClusterIP
# ports:
# - name: "teams"
# port: 3978
# selector:
# app: botkube
#---
## Source: botkube/templates/ingress.yaml
#apiVersion: extensions/v1beta1
#kind: Ingress
#metadata:
# name: botkube
# labels:
# app: botkube
# annotations:
# kubernetes.io/ingress.class: nginx
#spec:
# tls:
# - hosts:
# - HOST
# secretName: TLS_SECRET_NAME
# rules:
# - http:
# paths:
# - path: URLPATH
# backend:
# serviceName: botkube
# servicePort: 3978
# host: HOST

View File

@ -1,39 +1,39 @@
config:
## Resources you want to watch
resources:
- name: pod # Name of the resources e.g pod, deployment, ingress, etc.
- name: v1/pods # Name of the resource. Resource name must be in group/version/resource (G/V/R) format
# resource name should be plural (e.g apps/v1/deployments, v1/pods)
namespaces: # List of namespaces, "all" will watch all the namespaces
include:
include:
- all
ignore: # List of namespaces to be ignored (omitempty), used only with include: all
- kube-system # example : include [all], ignore [x,y,z]
events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
- create
- delete
- error
- name: batch/v1/jobs
namespaces:
include:
- all
ignore:
- kube-system
events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all
events:
- create
- update
- delete
- error
- name: job
updateSetting:
includeDiff: true
fields:
- spec.template.spec.containers[*].image
- status.conditions[*].type
- name: apps/v1/deployments
namespaces:
include:
include:
- all
ignore:
- kube-system
events:
- all
- name: service
namespaces:
include:
- all
ignore:
- kube-system
events:
- create
- delete
- error
- name: deployment
namespaces:
include:
- all
-
events:
- create
- update
@ -44,9 +44,9 @@ config:
fields:
- spec.template.spec.containers[*].image
- status.availableReplicas
- name: statefulset
- name: apps/v1/statefulsets
namespaces:
include:
include:
- all
events:
- create
@ -58,7 +58,7 @@ config:
fields:
- spec.template.spec.containers[*].image
- status.readyReplicas
- name: daemonset
- name: apps/v1/daemonsets
namespaces:
include:
- all
@ -74,23 +74,7 @@ config:
fields:
- spec.template.spec.containers[*].image
- status.numberReady
- name: job
namespaces:
include:
- all
ignore:
-
events:
- create
- update
- delete
- error
updateSetting:
includeDiff: true
fields:
- spec.template.spec.containers[*].image
- status.conditions[*].type
- name: node
- name: v1/nodes
namespaces:
include:
- all
@ -100,3 +84,20 @@ config:
- create
- delete
- error
# Custom resource example
#- name: velero.io/v1/backups
# namespaces:
# include:
# - all
# ignore:
# -
# events:
# - create
# - update
# - delete
# - error
# updateSetting:
# includeDiff: true
# fields:
# - status.phase

View File

@ -218,6 +218,22 @@ config:
- create
- delete
- error
# Custom resource example
#- name: velero.io/v1/backups
# namespaces:
# include:
# - all
# ignore:
# -
# events:
# - create
# - update
# - delete
# - error
# updateSetting:
# includeDiff: true
# fields:
# - status.phase
# Check true if you want to receive recommendations
# about the best practices for the created resource