Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # podman generate kube telegraf > telegraf.yaml
- Error: container 408d585fa404fa1e654082ceab97d8e372134c1b7a81341fa10b909ed754c9da is associated with pod d38af0ecf56a4656b16e2cfc8770891bd9d722d605f75f5fcc67fab1bcba8ef2: use generate on the pod itself
- root@multi-v7-ml:/home/student/projects/mqtt-telegraf-influxdb-grafana# podman generate kube d38af0ecf56a4656b16e2cfc8770891bd9d722d605f75f5fcc67fab1bcba8ef2 > pod.yaml
- root@multi-v7-ml:/home/student/projects/mqtt-telegraf-influxdb-grafana# cat pod.yaml
- # 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.0.0-dev
- apiVersion: v1
- kind: Pod
- metadata:
- creationTimestamp: "2021-02-09T20:18:04Z"
- labels:
- app: mqtt-telegraf-influxdb-grafana
- name: mqtt-telegraf-influxdb-grafana
- 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_DATA
- value: /var/lib/grafana
- - name: GF_PATHS_LOGS
- value: /var/log/grafana
- - name: GF_PATHS_PLUGINS
- value: /var/lib/grafana/plugins
- - name: GF_PATHS_PROVISIONING
- value: /etc/grafana/provisioning
- - name: GF_PATHS_CONFIG
- value: /etc/grafana/grafana.ini
- - name: GF_PATHS_HOME
- value: /usr/share/grafana
- image: docker.io/grafana/grafana:7.4.0
- name: grafana
- ports:
- - containerPort: 8086
- hostPort: 8086
- protocol: TCP
- - containerPort: 3000
- hostPort: 3000
- protocol: TCP
- resources: {}
- securityContext:
- allowPrivilegeEscalation: true
- capabilities: {}
- privileged: false
- readOnlyRootFilesystem: false
- runAsGroup: 0
- runAsUser: 472
- seLinuxOptions: {}
- volumeMounts:
- - mountPath: /etc/grafana/grafana.ini
- name: home-student-projects-mqtt-telegraf-influxdb-grafana-conf-grafana-grafana.ini
- - mountPath: /var/lib/grafana
- name: home-student-projects-tig-data-grafana
- - mountPath: /var/log/grafana
- name: home-student-projects-tig-log-grafana
- workingDir: /usr/share/grafana
- - args:
- - telegraf
- 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: TELEGRAF_VERSION
- value: 1.17.2
- image: docker.io/library/telegraf:1.17.2
- name: telegraf
- resources: {}
- securityContext:
- allowPrivilegeEscalation: true
- capabilities: {}
- privileged: false
- readOnlyRootFilesystem: false
- seLinuxOptions: {}
- volumeMounts:
- - mountPath: /etc/telegraf/telegraf.conf
- name: home-student-projects-mqtt-telegraf-influxdb-grafana-conf-telegraf-telegraf.conf
- - mountPath: /var/run/docker.sock
- name: var-run-docker.sock
- workingDir: /
- - 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.4
- image: docker.io/library/influxdb:1.8.4
- name: influxdb
- resources: {}
- securityContext:
- allowPrivilegeEscalation: true
- capabilities: {}
- privileged: false
- readOnlyRootFilesystem: false
- seLinuxOptions: {}
- volumeMounts:
- - mountPath: /var/lib/influxdb
- name: home-student-projects-tig-data-influxdb
- - mountPath: /etc/influxdb
- name: home-student-projects-mqtt-telegraf-influxdb-grafana-conf-influxdb
- workingDir: /
- dnsConfig: {}
- restartPolicy: Always
- volumes:
- - hostPath:
- path: /home/student/projects/tig/data/grafana
- type: Directory
- name: home-student-projects-tig-data-grafana
- - hostPath:
- path: /home/student/projects/tig/log/grafana
- type: Directory
- name: home-student-projects-tig-log-grafana
- - hostPath:
- path: /home/student/projects/mqtt-telegraf-influxdb-grafana/conf/telegraf/telegraf.conf
- type: File
- name: home-student-projects-mqtt-telegraf-influxdb-grafana-conf-telegraf-telegraf.conf
- - hostPath:
- path: /var/run/docker.sock
- type: File
- name: var-run-docker.sock
- - hostPath:
- path: /home/student/projects/tig/data/influxdb
- type: Directory
- name: home-student-projects-tig-data-influxdb
- - hostPath:
- path: /home/student/projects/mqtt-telegraf-influxdb-grafana/conf/influxdb
- type: Directory
- name: home-student-projects-mqtt-telegraf-influxdb-grafana-conf-influxdb
- - hostPath:
- path: /home/student/projects/mqtt-telegraf-influxdb-grafana/conf/grafana/grafana.ini
- type: File
- name: home-student-projects-mqtt-telegraf-influxdb-grafana-conf-grafana-grafana.ini
- status: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement