moving to argo
This commit is contained in:
parent
6850a3646e
commit
2e9c67f227
12 changed files with 757 additions and 6 deletions
77
applications/20-databases/influxdb.yaml
Normal file
77
applications/20-databases/influxdb.yaml
Normal file
|
@ -0,0 +1,77 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: influxdb-pvc
|
||||
namespace: database
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: influxdb-pv
|
||||
namespace: database
|
||||
spec:
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local-storage
|
||||
hostPath:
|
||||
path: /dpool/services/influxdb/data
|
||||
type: DirectoryOrCreate
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- dck.hxme.net
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: influxdb
|
||||
namespace: database
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: influxdb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: influxdb
|
||||
spec:
|
||||
containers:
|
||||
- name: influxdb
|
||||
image: influxdb:2.7.12
|
||||
ports:
|
||||
- containerPort: 8086
|
||||
volumeMounts:
|
||||
- name: influxdb-storage
|
||||
mountPath: /var/lib/influxdb2
|
||||
env:
|
||||
- name: DOCKER_INFLUXDB_INIT_MODE
|
||||
value: "setup"
|
||||
- name: DOCKER_INFLUXDB_INIT_USERNAME
|
||||
value: "admin"
|
||||
- name: DOCKER_INFLUXDB_INIT_PASSWORD
|
||||
value: "adminpassword"
|
||||
- name: DOCKER_INFLUXDB_INIT_ORG
|
||||
value: "myorg"
|
||||
- name: DOCKER_INFLUXDB_INIT_BUCKET
|
||||
value: "mybucket"
|
||||
volumes:
|
||||
- name: influxdb-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: influxdb-pvc
|
Loading…
Add table
Add a link
Reference in a new issue