blob: f045734daa6a228c3b960c1d538cd1b36ff7d284 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: alert-manager
name: alert-manager
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: am.skia.org
spec:
ports:
- name: metrics
port: 20000
- name: internal-http
port: 9000
- name: http
port: 8000
selector:
app: alert-manager
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: alert-manager
spec:
replicas: 2
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: alert-manager
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: alert-manager
image: gcr.io/skia-public/alert-manager:2019-10-01T14_27_44Z-jcgregorio-c755f79-clean
args:
- "--chrome_infra_auth_jwt=/var/secrets/skia-public-auth/key.json"
- "--namespace=alert-manager"
- "--logtostderr"
- "--port=:8000"
- "--internal_port=:9000"
- "--prom_port=:20000"
- "--resources_dir=/usr/local/share/alert-manager/"
ports:
- containerPort: 20000
- containerPort: 9000
- containerPort: 8000
volumeMounts:
- name: skia-public-auth
mountPath: /var/secrets/skia-public-auth
- name: skia-alert-manager-sa
mountPath: /var/secrets/google
- name: csrf-salt
mountPath: /var/skia/
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "100Mi"
cpu: "50m"
readinessProbe:
httpGet:
path: /metrics
port: 20000
initialDelaySeconds: 1
periodSeconds: 3
volumes:
- name: skia-public-auth
secret:
secretName: skia-public-auth
- name: skia-alert-manager-sa
secret:
secretName: skia-alert-manager
- name: csrf-salt
secret:
secretName: csrf-salt
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets