Skip to content

Instantly share code, notes, and snippets.

@rajagp
Created May 24, 2019 23:08
Show Gist options
  • Save rajagp/1854d00adc128dd22ed523f1dea83a51 to your computer and use it in GitHub Desktop.
Save rajagp/1854d00adc128dd22ed523f1dea83a51 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sync-gateway-exporter
spec:
replicas: 1
template:
metadata:
labels:
app: sync-gateway-exporter
spec:
containers:
- name: sync-gateway
image: couchbase/sync-gateway:2.5.0-enterprise
args: ["/sync-gateway-config/sgw-config.json"]
volumeMounts:
- name: sgw-config-volume
mountPath: /sync-gateway-config
readOnly: true
env:
- name: GOMAXPROCS
value: "1"
resources:
requests:
cpu: 100m
limits:
cpu: 100m
- name: exporter
image: priyacouch/sgw-exporter:dev
args: ["--sgw.url=http://localhost:4985"]
env:
- name: GOMAXPROCS
value: "1"
resources:
requests:
cpu: 100m
limits:
cpu: 100m
volumes:
- name: sgw-config-volume
secret:
secretName: sgw-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment