Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-base-1 / charts / influxdb2 / templates / app-statefulset.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 apiVersion: apps/v1
19 kind: StatefulSet
20 metadata:
21   labels:
22     app: influxdb2
23   name: influxdb2
24   namespace: nonrtric
25 spec:
26   replicas: 1
27   selector:
28     matchLabels:
29       app: influxdb2
30   serviceName: influxdb2
31   template:
32     metadata:
33       labels:
34         app: influxdb2
35     spec:
36       containers:
37       - image: influxdb:2.6.1
38         name: influxdb2
39         ports:
40         - containerPort: 8086
41           name: influxdb2
42         readinessProbe:
43           httpGet:
44             path: /ping
45             port: 8086
46           initialDelaySeconds: 10
47           periodSeconds: 3
48