initial commit

main
Piyush Harsh 2 years ago
parent 0875663a18
commit 8b6d5e5a15
  1. 30
      influxdb/influxdb-deployment.yml
  2. 24
      influxdb/influxdb-ingress.yml
  3. 13
      influxdb/influxdb-pvc.yml
  4. 15
      influxdb/influxdb-service.yml

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: influx
labels:
app: influxdb
name: influxdb
spec:
replicas: 1
selector:
matchLabels:
app: influxdb
template:
metadata:
labels:
app: influxdb
spec:
containers:
- name: influxdb
image: docker.io/influxdb:2.3.0
volumeMounts:
- mountPath: /var/lib/influxdb2
name: var-lib-influxdb
ports:
- containerPort: 8086
volumes:
- name: var-lib-influxdb
persistentVolumeClaim:
claimName: influxdb-pvc

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: influxdb-ingress
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-production
namespace: influx
spec:
rules:
- host: influx.cyclops-labs.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: influxdb
port:
number: 80
tls:
- hosts:
- influx.cyclops-labs.io
secretName: influx-tls

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: influx
labels:
app: influxdb
name: influxdb-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: influxdb
name: influxdb
namespace: influx
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8086
selector:
app: influxdb
Loading…
Cancel
Save