瀏覽代碼

feat(podman): Create the 'kube.yaml'

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 年之前
父節點
當前提交
6d9637a6a1
共有 1 個文件被更改,包括 120 次插入0 次删除
  1. 120 0
      kube.yaml

+ 120 - 0
kube.yaml

@@ -0,0 +1,120 @@
+# Generation of Kubernetes YAML is still under development!                                                                                                                                                                                                                                                         [28/639]#
+# 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:v8.5.7-pre
+    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: 8087
+      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
+  - hostPath:
+      path: /data/repository/speedtest/influxdb/influxdb.conf
+      type: File
+    name: data-repository-speedtest-influxdb-influxdb.conf-host-0
+  - hostPath:
+      path: /data/repository/speedtest/grafana/provisioning/datasources
+      type: File
+    name: speedtest_grafana-provisioning-datasources
+  - hostPath:
+      path: /data/repository/speedtest/grafana/provisioning/dashboards
+      type: File
+    name: speedtest_grafana-provisioning-dashboards