Sfoglia il codice sorgente

fix(kube.yml): Update the kube manifest

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 anni fa
parent
commit
56bbbfc649
2 ha cambiato i file con 183 aggiunte e 0 eliminazioni
  1. 121 0
      kube.yml
  2. 62 0
      kube1.yaml

+ 121 - 0
kube.yml

@@ -0,0 +1,121 @@
+---
+# Generation of Kubernetes YAML is still under development!
+# Save the output of this file and use kubectl create -f to import
+# it into Kubernetes.
+#
+# Created with podman-3.2.3
+apiVersion: v1
+kind: Pod
+metadata:
+  creationTimestamp: "2021-08-04T16:27:09Z"
+  labels:
+    app: speedtest
+  name: speedtest
+spec:
+  containers:
+    - command:
+        - /run.sh
+      env:
+        - name: PATH
+          value: /usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+        - name: TERM
+          value: xterm
+        - name: container
+          value: podman
+        - name: GF_PATHS_HOME
+          value: /usr/share/grafana
+        - name: GF_PATHS_LOGS
+          value: /var/log/grafana
+        - name: GF_PATHS_PLUGINS
+          value: /var/lib/grafana/plugins
+        - name: GF_PATHS_CONFIG
+          value: /etc/grafana/grafana.ini
+        - name: GF_PATHS_DATA
+          value: /var/lib/grafana
+        - name: GF_PATHS_PROVISIONING
+          value: /etc/grafana/provisioning
+      image: docker.io/library/grafana:v9.1.5
+      name: speedtestgrafana1
+      ports:
+        - containerPort: 3000
+          hostPort: 3000
+          protocol: TCP
+      resources: {}
+      securityContext:
+        allowPrivilegeEscalation: true
+        capabilities:
+          drop:
+            - CAP_MKNOD
+            - CAP_NET_RAW
+            - CAP_AUDIT_WRITE
+        privileged: false
+        readOnlyRootFilesystem: false
+        runAsGroup: 0
+        runAsUser: 472
+        seLinuxOptions: {}
+      volumeMounts:
+        - mountPath: /var/lib/grafana
+          name: speedtest_grafana-storage
+        - mountPath: /etc/grafana/provisioning/datasources
+          name: speedtest_grafana-provisioning-datasources
+        - mountPath: /etc/grafana/provisioning/dashboards
+          name: speedtest_grafana-provisioning-dashboards
+      workingDir: /usr/share/grafana
+    - args:
+        - influxd
+      command:
+        - /entrypoint.sh
+      env:
+        - name: PATH
+          value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+        - name: TERM
+          value: xterm
+        - name: container
+          value: podman
+        - name: INFLUXDB_VERSION
+          value: 1.8.2
+      image: docker.io/library/influxdb:1.8.2
+      name: speedtestinfluxdb1
+      ports:
+        - containerPort: 8086
+          hostPort: 8086
+          protocol: TCP
+      resources: {}
+      securityContext:
+        allowPrivilegeEscalation: true
+        capabilities:
+          drop:
+            - CAP_MKNOD
+            - CAP_NET_RAW
+            - CAP_AUDIT_WRITE
+        privileged: false
+        readOnlyRootFilesystem: false
+        seLinuxOptions: {}
+      volumeMounts:
+        - mountPath: /etc/influxdb/influxdb.conf
+          name: data-repository-speedtest-influxdb-influxdb.conf-host-0
+          readOnly: true
+        - mountPath: /var/lib/influxdb
+          name: speedtest_influxdb-data-pvc
+      workingDir: /
+  dnsConfig: {}
+  restartPolicy: Never
+  volumes:
+    - name: speedtest_influxdb-data-pvc
+      persistentVolumeClaim:
+        claimName: speedtest_influxdb-data
+    - name: speedtest_grafana-storage
+      persistentVolumeClaim:
+        claimName: speedtest_grafana-storage
+    - name: data-repository-speedtest-influxdb-influxdb.conf-host-0
+      hostPath:
+        path: /data/repository/speedtest/influxdb/influxdb.conf
+        type: File
+    - name: speedtest_grafana-provisioning-datasources
+      hostPath:
+        path: /data/repository/speedtest/grafana/provisioning/datasources
+        type: File
+    - name: speedtest_grafana-provisioning-dashboards
+      hostPath:
+        path: /data/repository/speedtest/grafana/provisioning/dashboards
+        type: File

+ 62 - 0
kube1.yaml

@@ -0,0 +1,62 @@
+---
+# Generation of Kubernetes YAML is still under development!
+# Save the output of this file and use kubectl create -f to import
+# it into Kubernetes.
+#
+# Created with podman-3.2.3
+apiVersion: v1
+kind: Pod
+metadata:
+  creationTimestamp: "2021-08-04T16:27:09Z"
+  labels:
+    app: speedtest
+  name: speedtest
+spec:
+  containers:
+    - args:
+        - influxd
+      command:
+        - /entrypoint.sh
+      env:
+        - name: PATH
+          value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+        - name: TERM
+          value: xterm
+        - name: container
+          value: podman
+        - name: INFLUXDB_VERSION
+          value: 1.8.2
+      image: docker.io/library/influxdb:1.8.2
+      name: speedtestinfluxdb1
+      ports:
+        - containerPort: 8086
+          hostPort: 8086
+          protocol: TCP
+      resources: {}
+      securityContext:
+        allowPrivilegeEscalation: true
+        capabilities:
+          drop:
+            - CAP_MKNOD
+            - CAP_NET_RAW
+            - CAP_AUDIT_WRITE
+        privileged: false
+        readOnlyRootFilesystem: false
+        seLinuxOptions: {}
+      volumeMounts:
+        - mountPath: /etc/influxdb/influxdb.conf
+          name: data-repository-speedtest-influxdb-influxdb.conf-host-0
+          readOnly: true
+        - mountPath: /var/lib/influxdb
+          name: speedtest_influxdb-data-pvc
+      workingDir: /
+  dnsConfig: {}
+  restartPolicy: Never
+  volumes:
+    - name: speedtest_influxdb-data-pvc
+      persistentVolumeClaim:
+        claimName: speedtest_influxdb-data
+    - name: data-repository-speedtest-influxdb-influxdb.conf-host-0
+      hostPath:
+        path: /data/repository/speedtest/influxdb/influxdb.conf
+        type: File