Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match prod cfg with dev #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
8 changes: 3 additions & 5 deletions deploy/kubernetes/incident-bot/base/dev/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ metadata:
app: incident-bot
name: incident-bot
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: incident-bot
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxSurge: 1
maxUnavailable: 0
template:
metadata:
Expand All @@ -28,8 +28,6 @@ spec:
envFrom:
- secretRef:
name: incident-bot
# - configMapRef:
# name: incident-bot
ports:
- name: api
containerPort: 3000
Expand Down Expand Up @@ -95,7 +93,7 @@ spec:
# The proxy's CPU use scales linearly with the amount of IO between
# the database and the application. Adjust this value based on your
# application's requirements.
cpu: 500m
cpu: 250m
serviceAccountName: incident-bot
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
8 changes: 3 additions & 5 deletions deploy/kubernetes/incident-bot/base/prod/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ metadata:
app: incident-bot
name: incident-bot
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: incident-bot
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 2
maxSurge: 1
maxUnavailable: 0
template:
metadata:
Expand All @@ -28,8 +28,6 @@ spec:
envFrom:
- secretRef:
name: incident-bot
# - configMapRef:
# name: incident-bot
ports:
- name: api
containerPort: 3000
Expand Down Expand Up @@ -95,7 +93,7 @@ spec:
# The proxy's CPU use scales linearly with the amount of IO between
# the database and the application. Adjust this value based on your
# application's requirements.
cpu: 500m
cpu: 250m
serviceAccountName: incident-bot-prod
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
20 changes: 10 additions & 10 deletions deploy/kubernetes/incident-bot/base/prod/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ kind: Ingress
metadata:
name: incident-bot
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: incident-bot
port:
number: 80
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: incident-bot
port:
number: 80
5 changes: 3 additions & 2 deletions deploy/kubernetes/incident-bot/base/prod/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: incident-bot-prod
nodeSelector:
iam.gke.io/gke-metadata-server-enabled: "true"
namespace: slackbots
annotations:
iam.gke.io/gcp-service-account: slackbots-workload-identity@brightside-prod.iam.gserviceaccount.com