Skip to content

Instantly share code, notes, and snippets.

@ctron
Created August 6, 2021 16:28
Show Gist options
  • Save ctron/8c646228ff7f07647ac6f9c9bb9d3b83 to your computer and use it in GitHub Desktop.
Save ctron/8c646228ff7f07647ac6f9c9bb9d3b83 to your computer and use it in GitHub Desktop.
Outflux Kubernetes Job
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