blob: 909a0c17fb8ce4929299dbc5223800a27126f319 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: collectd-exporter
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: collectd.skia.org
spec:
selector:
app: collectd-exporter
type: NodePort
ports:
- port: 8000
name: http
- port: 10000
name: metrics
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: collectd-exporter
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: collectd-exporter
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "9103"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: collectd-exporter
image: prom/collectd-exporter:v0.4.0
ports:
- containerPort: 9103
resources:
requests:
memory: "1Gi"
cpu: "500m"
readinessProbe:
httpGet:
path: /
port: 9103
initialDelaySeconds: 1
periodSeconds: 3
- name: auth-proxy
args:
- "--logtostderr"
- "--port=:8000"
- "--target_port=:9103"
- "--prom_port=:10000"
- "--allow_post"
image: gcr.io/skia-public/auth-proxy:2019-04-08T14_16_25Z-rmistry-cfbdc64-clean
ports:
- containerPort: 8000
- containerPort: 10000
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 1
periodSeconds: 3
volumeMounts:
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
- name: csrf-salt
mountPath: /var/skia/
resources:
requests:
memory: "30Mi"
cpu: "200m"
volumes:
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets
- name: csrf-salt
secret:
secretName: csrf-salt