Created
August 6, 2021 16:28
-
-
Save ctron/8c646228ff7f07647ac6f9c9bb9d3b83 to your computer and use it in GitHub Desktop.
Outflux Kubernetes Job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Job | |
apiVersion: batch/v1 | |
metadata: | |
name: outflux | |
spec: | |
parallelism: 1 | |
completions: 1 | |
template: | |
metadata: | |
labels: | |
job: outflux | |
spec: | |
restartPolicy: Never | |
containers: | |
- name: outflux | |
image: quay.io/ctron/outflux:latest | |
args: | |
- migrate | |
- iot | |
- --input-server=http://influxdb:8086 | |
- --input-user=read | |
- --input-pass=read123456 | |
env: | |
- name: PGHOST | |
value: timescaledb | |
- name: PGDATABASE | |
valueFrom: | |
configMapKeyRef: | |
name: timescaledb-config | |
key: databaseName | |
- name: PGUSER | |
valueFrom: | |
secretKeyRef: | |
name: timescaledb-secret | |
key: admin.username | |
- name: PGPASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: timescaledb-secret | |
key: admin.password | |
- name: PGSSLMODE | |
value: disable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment