apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: run: nginx name: nginx spec: replicas: 1 selector: matchLabels: run: nginx strategy: {} template: metadata: creationTimestamp: null labels: run: nginx spec: volumes: - name: logs emptyDir: {} containers: - image: nginx name: nginx resources: {} volumeMounts: - name: logs mountPath: /var/log/nginx status: {} --- apiVersion: v1 kind: Service metadata: creationTimestamp: null labels: run: nginx name: nginx spec: ports: - port: 1234 protocol: TCP targetPort: 80 selector: run: nginx type: LoadBalancer status: loadBalancer: {}