kube.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ---
  2. # Generation of Kubernetes YAML is still under development!
  3. # Save the output of this file and use kubectl create -f to import
  4. # it into Kubernetes.
  5. #
  6. # Created with podman-3.2.3
  7. apiVersion: v1
  8. kind: Pod
  9. metadata:
  10. creationTimestamp: "2021-08-04T16:27:09Z"
  11. labels:
  12. app: speedtest
  13. name: speedtest
  14. spec:
  15. containers:
  16. - command:
  17. - /run.sh
  18. env:
  19. - name: PATH
  20. value: /usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  21. - name: TERM
  22. value: xterm
  23. - name: container
  24. value: podman
  25. - name: GF_PATHS_HOME
  26. value: /usr/share/grafana
  27. - name: GF_PATHS_LOGS
  28. value: /var/log/grafana
  29. - name: GF_PATHS_PLUGINS
  30. value: /var/lib/grafana/plugins
  31. - name: GF_PATHS_CONFIG
  32. value: /etc/grafana/grafana.ini
  33. - name: GF_PATHS_DATA
  34. value: /var/lib/grafana
  35. - name: GF_PATHS_PROVISIONING
  36. value: /etc/grafana/provisioning
  37. image: docker.io/library/grafana:v9.1.5
  38. name: speedtestgrafana1
  39. ports:
  40. - containerPort: 3000
  41. hostPort: 3000
  42. protocol: TCP
  43. resources: {}
  44. securityContext:
  45. allowPrivilegeEscalation: true
  46. capabilities:
  47. drop:
  48. - CAP_MKNOD
  49. - CAP_NET_RAW
  50. - CAP_AUDIT_WRITE
  51. privileged: false
  52. readOnlyRootFilesystem: false
  53. runAsGroup: 0
  54. runAsUser: 472
  55. seLinuxOptions: {}
  56. volumeMounts:
  57. - mountPath: /var/lib/grafana
  58. name: speedtest_grafana-storage
  59. - mountPath: /etc/grafana/provisioning/datasources
  60. name: speedtest_grafana-provisioning-datasources
  61. - mountPath: /etc/grafana/provisioning/dashboards
  62. name: speedtest_grafana-provisioning-dashboards
  63. workingDir: /usr/share/grafana
  64. - args:
  65. - influxd
  66. command:
  67. - /entrypoint.sh
  68. env:
  69. - name: PATH
  70. value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  71. - name: TERM
  72. value: xterm
  73. - name: container
  74. value: podman
  75. - name: INFLUXDB_VERSION
  76. value: 1.8.2
  77. image: docker.io/library/influxdb:1.8.2
  78. name: speedtestinfluxdb1
  79. ports:
  80. - containerPort: 8086
  81. hostPort: 8086
  82. protocol: TCP
  83. resources: {}
  84. securityContext:
  85. allowPrivilegeEscalation: true
  86. capabilities:
  87. drop:
  88. - CAP_MKNOD
  89. - CAP_NET_RAW
  90. - CAP_AUDIT_WRITE
  91. privileged: false
  92. readOnlyRootFilesystem: false
  93. seLinuxOptions: {}
  94. volumeMounts:
  95. - mountPath: /etc/influxdb/influxdb.conf
  96. name: data-repository-speedtest-influxdb-influxdb.conf-host-0
  97. readOnly: true
  98. - mountPath: /var/lib/influxdb
  99. name: speedtest_influxdb-data-pvc
  100. workingDir: /
  101. dnsConfig: {}
  102. restartPolicy: Never
  103. volumes:
  104. - name: speedtest_influxdb-data-pvc
  105. persistentVolumeClaim:
  106. claimName: speedtest_influxdb-data
  107. - name: speedtest_grafana-storage
  108. persistentVolumeClaim:
  109. claimName: speedtest_grafana-storage
  110. - name: data-repository-speedtest-influxdb-influxdb.conf-host-0
  111. hostPath:
  112. path: /data/repository/speedtest/influxdb/influxdb.conf
  113. type: File
  114. - name: speedtest_grafana-provisioning-datasources
  115. hostPath:
  116. path: /data/repository/speedtest/grafana/provisioning/datasources
  117. type: File
  118. - name: speedtest_grafana-provisioning-dashboards
  119. hostPath:
  120. path: /data/repository/speedtest/grafana/provisioning/dashboards
  121. type: File