apiVersion: v1 kind: Service metadata: name: test-http # annotations: # metallb.universe.tf/address-pool: default spec: # type: NodePort type: LoadBalancer loadBalancerIP: 192.168.200.10 selector: app: test-http ports: - port: 80 targetPort: 80 # nodePort: 30080 --- apiVersion: apps/v1 kind: Deployment metadata: name: test-http spec: replicas: 1 selector: matchLabels: app: test-http template: metadata: labels: app: test-http spec: containers: - name: test-http image: nginx:alpine ports: - containerPort: 80