Skip to content

Commit 2eded68

Browse files
committed
Small improvement to gnmic ingestor/emitter
1 parent 9f97d35 commit 2eded68

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

install/kubernetes/gnp-stack/templates/gnmic-emitter/gnmic-emitter-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- with .Values.gnmic.emitter -}}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -6,7 +7,7 @@ metadata:
67
name: gnmic-emitter
78
namespace: gnp-stack
89
spec:
9-
replicas: 1
10+
replicas: {{ .replcias }}
1011
selector:
1112
matchLabels:
1213
service: gnmic-emitter
@@ -41,3 +42,4 @@ spec:
4142
path: gnmic.yaml
4243
name: gnmic-emitter-cm0
4344
name: gnmic-emitter-cm0
45+
{{- end -}}

install/kubernetes/gnp-stack/templates/gnmic-ingestor/gnmic-ingestor-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- with .Values.gnmic.ingestor -}}
12
apiVersion: apps/v1
23
kind: Deployment
34
metadata:
@@ -6,7 +7,7 @@ metadata:
67
name: gnmic-ingestor
78
namespace: gnp-stack
89
spec:
9-
replicas: 1
10+
replicas: {{ .replicas }}
1011
selector:
1112
matchLabels:
1213
service: gnmic-ingestor
@@ -41,3 +42,4 @@ spec:
4142
path: gnmic.yaml
4243
name: gnmic-ingestor-cm0
4344
name: gnmic-ingestor-cm0
45+
{{- end -}}

install/kubernetes/gnp-stack/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ gnmic:
1212
# Config file for gnmic-ingestor
1313
# For details see: https://gnmic.openconfig.net/user_guide/configuration_file/
1414
ingestor:
15+
replicas: 1
1516
config: |
1617
username: admin
1718
log: true
@@ -258,6 +259,7 @@ gnmic:
258259
# Config file for gnmic-emitter
259260
# For details see: https://gnmic.openconfig.net/user_guide/configuration_file/
260261
emitter:
262+
replicas: 1
261263
config: |
262264
log: true
263265

0 commit comments

Comments
 (0)