Skip to content

Instantly share code, notes, and snippets.

@robskillington
Created May 13, 2019 04:20
Show Gist options
  • Save robskillington/0090f7a0752b3d8e0906011e05503202 to your computer and use it in GitHub Desktop.
Save robskillington/0090f7a0752b3d8e0906011e05503202 to your computer and use it in GitHub Desktop.
m3coordinator k8s manifest (dedicated)
---
apiVersion: v1
kind: Service
metadata:
labels:
app: coordinator
name: coordinator-dedicated
spec:
ports:
- name: coordinator
port: 7201
protocol: TCP
targetPort: 7201
- name: coord-debug
port: 7203
protocol: TCP
targetPort: 7203
selector:
app: coordinator
type: ClusterIP
---
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: coordinator
name: coordinator-dedicated
data:
coordinator.yaml: |+
listenAddress:
type: "config"
value: "0.0.0.0:7201"
metrics:
scope:
prefix: "coordinator"
prometheus:
handlerPath: /metrics
listenAddress: 0.0.0.0:7203 # until https://github.com/m3db/m3/issues/682 is resolved
sanitization: prometheus
samplingRate: 1.0
extended: none
clusters:
- namespaces:
- namespace: metrics_0_30m
type: unaggregated
retention: 30m
- namespace: carbon-1m:30d
type: aggregated
retention: 720h
resolution: 1m
client:
config:
service:
# FILL ME IN
env: $NAMESPACE/$OPERATOR_CLUSTER_NAME
zone: embedded
service: m3db
cacheDir: /var/lib/m3kv
etcdClusters:
- zone: embedded
endpoints:
# FILL IN IF NON-STANDARD
- http://etcd-0.etcd:2379
- http://etcd-1.etcd:2379
- http://etcd-2.etcd:2379
ingest:
ingester:
workerPoolSize: 100
opPool:
size: 100
retry:
maxRetries: 3
jitter: true
logSampleRate: 0.01
m3msg:
server:
listenAddress: "0.0.0.0:7507"
retry:
maxBackoff: 10s
jitter: true
carbon:
ingester:
listenAddress: "0.0.0.0:7204"
tagOptions:
idScheme: quoted
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: coordinator
name: coordinator-dedicated
spec:
replicas: 5
strategy:
type: RollingUpdate
selector:
matchLabels:
app: coordinator
deployment: dedicated
template:
metadata:
labels:
app: coordinator
deployment: dedicated
spec:
containers:
- name: m3coordinator
image: quay.io/m3db/m3coordinator:latest
args:
- "-f"
- "/etc/m3/coordinator.yaml"
volumeMounts:
- name: config
mountPath: /etc/m3
imagePullPolicy: Always
ports:
- name: coordinator
containerPort: 7201
protocol: TCP
- name: debug
containerPort: 7203
protocol: TCP
volumes:
- name: config
configMap:
name: coordinator-dedicated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment