apiVersion: v1 kind: Service metadata: name: api-service namespace: api-ns spec: type: LoadBalancer ports: - name: general-api port: 8080 targetPort: 8080 selector: app: api-apps