From 813386dee2e0bad176a55ef8a6a62e172373bb5d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 31 Jul 2022 21:28:59 +0200 Subject: move graphite to new cdn repo --- contrib/k8s-emc/_graveyard_/graphite-cm-api.yml | 17 +++++ contrib/k8s-emc/_graveyard_/graphite-cm-carbon.yml | 55 ++++++++++++++++ .../k8s-emc/_graveyard_/graphite-statefulset.yml | 76 ++++++++++++++++++++++ contrib/k8s-emc/_graveyard_/graphite-svc.yml | 18 +++++ contrib/k8s-emc/graphite-cm-api.yml | 17 ----- contrib/k8s-emc/graphite-cm-carbon.yml | 55 ---------------- contrib/k8s-emc/graphite-statefulset.yml | 76 ---------------------- contrib/k8s-emc/graphite-svc.yml | 18 ----- 8 files changed, 166 insertions(+), 166 deletions(-) create mode 100644 contrib/k8s-emc/_graveyard_/graphite-cm-api.yml create mode 100644 contrib/k8s-emc/_graveyard_/graphite-cm-carbon.yml create mode 100644 contrib/k8s-emc/_graveyard_/graphite-statefulset.yml create mode 100644 contrib/k8s-emc/_graveyard_/graphite-svc.yml delete mode 100644 contrib/k8s-emc/graphite-cm-api.yml delete mode 100644 contrib/k8s-emc/graphite-cm-carbon.yml delete mode 100644 contrib/k8s-emc/graphite-statefulset.yml delete mode 100644 contrib/k8s-emc/graphite-svc.yml diff --git a/contrib/k8s-emc/_graveyard_/graphite-cm-api.yml b/contrib/k8s-emc/_graveyard_/graphite-cm-api.yml new file mode 100644 index 0000000..0e2e5ac --- /dev/null +++ b/contrib/k8s-emc/_graveyard_/graphite-cm-api.yml @@ -0,0 +1,17 @@ +kind: ConfigMap +apiVersion: v1 +metadata: + namespace: emc + name: stats-graphite-api + labels: + app: graphite + tier: stats +data: + api.yaml: | + search_index: /srv/index/index + whisper: + directories: + - /srv/data/whisper + carbon: + hosts: + - 127.0.0.1:7002 diff --git a/contrib/k8s-emc/_graveyard_/graphite-cm-carbon.yml b/contrib/k8s-emc/_graveyard_/graphite-cm-carbon.yml new file mode 100644 index 0000000..de5419c --- /dev/null +++ b/contrib/k8s-emc/_graveyard_/graphite-cm-carbon.yml @@ -0,0 +1,55 @@ +kind: ConfigMap +apiVersion: v1 +metadata: + namespace: emc + name: stats-graphite-carbon + labels: + app: graphite + tier: stats +data: + carbon.conf: | + [cache] + + STORAGE_DIR = /srv/data/ + LOCAL_DATA_DIR = /srv/data/whisper/ + CONF_DIR = /srv/config/ + + MAX_CACHE_SIZE = inf + MAX_UPDATES_PER_SECOND = 1000 + # MAX_UPDATES_PER_SECOND_ON_SHUTDOWN = 5000 + + MAX_CREATES_PER_MINUTE = 50 + + LINE_RECEIVER_INTERFACE = 0.0.0.0 + LINE_RECEIVER_PORT = 2003 + + ENABLE_UDP_LISTENER = False + PICKLE_RECEIVER_PORT = 0 + + LOG_LISTENER_CONNECTIONS = True + + CACHE_QUERY_INTERFACE = 127.0.0.1 + CACHE_QUERY_PORT = 7002 + + USE_FLOW_CONTROL = True + + LOG_UPDATES = False + LOG_CACHE_HITS = False + LOG_CACHE_QUEUE_SORTS = True + + CACHE_WRITE_STRATEGY = sorted + WHISPER_AUTOFLUSH = False + + WHISPER_FALLOCATE_CREATE = True + storage-schemas.conf: | + [carbon] + pattern = ^carbon\. + retentions = 60:90d + + [sfive] + pattern = ^sfive\. + retentions = 20s:10d,1m:21d,15m:5y + + [default_1min_for_1day] + pattern = .* + retentions = 60s:1d diff --git a/contrib/k8s-emc/_graveyard_/graphite-statefulset.yml b/contrib/k8s-emc/_graveyard_/graphite-statefulset.yml new file mode 100644 index 0000000..3ee1b02 --- /dev/null +++ b/contrib/k8s-emc/_graveyard_/graphite-statefulset.yml @@ -0,0 +1,76 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + namespace: emc + name: stats-graphite + labels: + app: graphite + tier: stats +spec: + serviceName: stats-graphite + replicas: 1 + selector: + matchLabels: + app: graphite + tier: stats + updateStrategy: + type: RollingUpdate + template: + metadata: + labels: + app: graphite + tier: stats + spec: + nodeName: emc-ctrl + securityContext: + runAsUser: 998 + fsGroup: 998 + initContainers: + - name: prepare-graphite-data + image: busybox + command: ['sh', '-c', 'chown 998:998 /srv/data && chmod 700 /srv/data'] + securityContext: + runAsUser: 0 + volumeMounts: + - name: graphite-data + mountPath: /srv/data + containers: + - name: carbon + image: spreadspace/graphite-carbon:master-4 + imagePullPolicy: Always + volumeMounts: + - name: home + mountPath: /srv + - name: carbon-config + mountPath: /srv/config + - name: graphite-data + mountPath: /srv/data + - name: api + image: spreadspace/graphite-api:master-4 + imagePullPolicy: Always + volumeMounts: + - name: home + mountPath: /srv + - name: api-config + mountPath: /srv/config + - name: api-index + mountPath: /srv/index + - name: graphite-data + mountPath: /srv/data + volumes: + - name: home + emptyDir: + medium: Memory + - name: graphite-data + hostPath: + type: DirectoryOrCreate + path: /srv/stats/graphite + - name: carbon-config + configMap: + name: stats-graphite-carbon + - name: api-config + configMap: + name: stats-graphite-api + - name: api-index + emptyDir: + medium: Memory diff --git a/contrib/k8s-emc/_graveyard_/graphite-svc.yml b/contrib/k8s-emc/_graveyard_/graphite-svc.yml new file mode 100644 index 0000000..2c9d9bf --- /dev/null +++ b/contrib/k8s-emc/_graveyard_/graphite-svc.yml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + namespace: emc + name: stats-graphite + labels: + app: graphite + tier: stats +spec: + selector: + app: graphite + tier: stats + clusterIP: 172.18.242.31 + ports: + - name: line + port: 2003 + - name: api + port: 8080 diff --git a/contrib/k8s-emc/graphite-cm-api.yml b/contrib/k8s-emc/graphite-cm-api.yml deleted file mode 100644 index 0e2e5ac..0000000 --- a/contrib/k8s-emc/graphite-cm-api.yml +++ /dev/null @@ -1,17 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - namespace: emc - name: stats-graphite-api - labels: - app: graphite - tier: stats -data: - api.yaml: | - search_index: /srv/index/index - whisper: - directories: - - /srv/data/whisper - carbon: - hosts: - - 127.0.0.1:7002 diff --git a/contrib/k8s-emc/graphite-cm-carbon.yml b/contrib/k8s-emc/graphite-cm-carbon.yml deleted file mode 100644 index de5419c..0000000 --- a/contrib/k8s-emc/graphite-cm-carbon.yml +++ /dev/null @@ -1,55 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - namespace: emc - name: stats-graphite-carbon - labels: - app: graphite - tier: stats -data: - carbon.conf: | - [cache] - - STORAGE_DIR = /srv/data/ - LOCAL_DATA_DIR = /srv/data/whisper/ - CONF_DIR = /srv/config/ - - MAX_CACHE_SIZE = inf - MAX_UPDATES_PER_SECOND = 1000 - # MAX_UPDATES_PER_SECOND_ON_SHUTDOWN = 5000 - - MAX_CREATES_PER_MINUTE = 50 - - LINE_RECEIVER_INTERFACE = 0.0.0.0 - LINE_RECEIVER_PORT = 2003 - - ENABLE_UDP_LISTENER = False - PICKLE_RECEIVER_PORT = 0 - - LOG_LISTENER_CONNECTIONS = True - - CACHE_QUERY_INTERFACE = 127.0.0.1 - CACHE_QUERY_PORT = 7002 - - USE_FLOW_CONTROL = True - - LOG_UPDATES = False - LOG_CACHE_HITS = False - LOG_CACHE_QUEUE_SORTS = True - - CACHE_WRITE_STRATEGY = sorted - WHISPER_AUTOFLUSH = False - - WHISPER_FALLOCATE_CREATE = True - storage-schemas.conf: | - [carbon] - pattern = ^carbon\. - retentions = 60:90d - - [sfive] - pattern = ^sfive\. - retentions = 20s:10d,1m:21d,15m:5y - - [default_1min_for_1day] - pattern = .* - retentions = 60s:1d diff --git a/contrib/k8s-emc/graphite-statefulset.yml b/contrib/k8s-emc/graphite-statefulset.yml deleted file mode 100644 index 3ee1b02..0000000 --- a/contrib/k8s-emc/graphite-statefulset.yml +++ /dev/null @@ -1,76 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - namespace: emc - name: stats-graphite - labels: - app: graphite - tier: stats -spec: - serviceName: stats-graphite - replicas: 1 - selector: - matchLabels: - app: graphite - tier: stats - updateStrategy: - type: RollingUpdate - template: - metadata: - labels: - app: graphite - tier: stats - spec: - nodeName: emc-ctrl - securityContext: - runAsUser: 998 - fsGroup: 998 - initContainers: - - name: prepare-graphite-data - image: busybox - command: ['sh', '-c', 'chown 998:998 /srv/data && chmod 700 /srv/data'] - securityContext: - runAsUser: 0 - volumeMounts: - - name: graphite-data - mountPath: /srv/data - containers: - - name: carbon - image: spreadspace/graphite-carbon:master-4 - imagePullPolicy: Always - volumeMounts: - - name: home - mountPath: /srv - - name: carbon-config - mountPath: /srv/config - - name: graphite-data - mountPath: /srv/data - - name: api - image: spreadspace/graphite-api:master-4 - imagePullPolicy: Always - volumeMounts: - - name: home - mountPath: /srv - - name: api-config - mountPath: /srv/config - - name: api-index - mountPath: /srv/index - - name: graphite-data - mountPath: /srv/data - volumes: - - name: home - emptyDir: - medium: Memory - - name: graphite-data - hostPath: - type: DirectoryOrCreate - path: /srv/stats/graphite - - name: carbon-config - configMap: - name: stats-graphite-carbon - - name: api-config - configMap: - name: stats-graphite-api - - name: api-index - emptyDir: - medium: Memory diff --git a/contrib/k8s-emc/graphite-svc.yml b/contrib/k8s-emc/graphite-svc.yml deleted file mode 100644 index 2c9d9bf..0000000 --- a/contrib/k8s-emc/graphite-svc.yml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - namespace: emc - name: stats-graphite - labels: - app: graphite - tier: stats -spec: - selector: - app: graphite - tier: stats - clusterIP: 172.18.242.31 - ports: - - name: line - port: 2003 - - name: api - port: 8080 -- cgit v1.2.3