|
3 | 3 | local pvc = $.core.v1.persistentVolumeClaim,
|
4 | 4 | local statefulSet = $.apps.v1.statefulSet,
|
5 | 5 | local volume = $.core.v1.volume,
|
| 6 | + local volumeMount = $.core.v1.volumeMount, |
6 | 7 |
|
7 | 8 | // The ingesters should persist TSDB blocks and WAL on a persistent
|
8 | 9 | // volume in order to be crash resilient.
|
|
44 | 45 | 'ingester.tokens-file-path': '/data/tokens',
|
45 | 46 | },
|
46 | 47 |
|
47 |
| - ingester_statefulset_args:: |
48 |
| - $._config.grpcConfig |
49 |
| - { |
50 |
| - 'ingester.wal-enabled': true, |
51 |
| - 'ingester.checkpoint-enabled': true, |
52 |
| - 'ingester.recover-from-wal': true, |
53 |
| - 'ingester.wal-dir': $._config.ingester.wal_dir, |
54 |
| - 'ingester.checkpoint-duration': '15m', |
55 |
| - '-log.level': 'info', |
56 |
| - 'ingester.tokens-file-path': $._config.ingester.wal_dir + '/tokens', |
57 |
| - }, |
58 |
| - |
59 | 48 | ingester_ports:: $.util.defaultPorts,
|
60 | 49 |
|
61 | 50 | local name = 'ingester',
|
|
65 | 54 | container.new(name, $._images.ingester) +
|
66 | 55 | container.withPorts($.ingester_ports) +
|
67 | 56 | container.withArgsMixin($.util.mapToFlags($.ingester_args)) +
|
| 57 | + container.withEnvMap($.ingester_env_map) + |
68 | 58 | $.util.resourcesRequests('4', '15Gi') +
|
69 | 59 | $.util.resourcesLimits(null, '25Gi') +
|
70 | 60 | $.util.readinessProbe +
|
71 | 61 | $.jaeger_mixin,
|
72 | 62 |
|
73 |
| - local volumeMount = $.core.v1.volumeMount, |
74 |
| - |
75 |
| - ingester_statefulset_container:: |
76 |
| - $.ingester_container + |
77 |
| - container.withArgsMixin($.util.mapToFlags($.ingester_statefulset_args)) + |
78 |
| - container.withVolumeMountsMixin([ |
79 |
| - volumeMount.new('ingester-pvc', $._config.ingester.wal_dir), |
80 |
| - ]), |
81 |
| - |
82 | 63 | ingester_deployment_labels:: {},
|
83 | 64 |
|
| 65 | + ingester_env_map:: { |
| 66 | + GOMAXPROCS: '4', |
| 67 | + GOMEMLIMIT: '15GiB', |
| 68 | + }, |
| 69 | + |
84 | 70 | local ingester_pvc =
|
85 | 71 | pvc.new('ingester-pvc') +
|
86 | 72 | pvc.mixin.spec.resources.withRequests({ storage: $._config.ingester.statefulset_disk }) +
|
|
0 commit comments