forked from IBM/spark-s3-shuffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfluxdb_kubernetes.yml
49 lines (49 loc) · 941 Bytes
/
influxdb_kubernetes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Copyright 2023- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache-2.0
#
# ---
# A simple influx db Kubernetes deployment to gather JVM metrics.
#
apiVersion: v1
kind: Pod
metadata:
labels:
app.kubernetes.io/name: influxdb
name: influxdb
spec:
containers:
- name: influxdb
image: docker.io/influxdb:1.8
imagePullPolicy: Always
resources:
requests:
memory: "16G"
cpu: "4"
limits:
memory: "16G"
cpu: "4"
env:
- name: INFLUXDB_ADMIN_USER
value: admin
- name: INFLUXDB_ADMIN_PASSWORD
value: admin
- name: INFLUXDB_DB
value: influxdb
ports:
- containerPort: 8086
name: influxdb-port
---
apiVersion: v1
kind: Service
metadata:
name: influxdb
spec:
selector:
app.kubernetes.io/name: influxdb
ports:
- name: influxdb-port
protocol: TCP
port: 8086
targetPort: influxdb-port
---