apiVersion: v1 kind: PersistentVolumeClaim metadata: name: sensorhub-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 32Mi --- apiVersion: apps/v1 kind: Deployment metadata: name: sensorhub-test-deployment spec: replicas: 1 selector: matchLabels: app: sensorhub template: metadata: labels: app: sensorhub spec: containers: - name: sensorhub-testrun image: docker.io/mioja/sensorhub:latest imagePullPolicy: Always ports: - containerPort: 8000 protocol: TCP volumeMounts: - mountPath: /opt/sensorhub/instance name: instance-vol - name: nginx-testrun image: docker.io/mioja/sensorhub-nginx:latest imagePullPolicy: Always ports: - containerPort: 8080 protocol: TCP env: - name: HOSTNAME value: localhost volumes: - name: instance-vol persistentVolumeClaim: claimName: sensorhub-pvc --- apiVersion: v1 kind: Service metadata: name: sensorhub-entrypoint namespace: default spec: type: NodePort selector: app: sensorhub ports: - port: 8080 targetPort: 8080 nodePort: 30001