apiVersion: v1 kind: Service metadata: name: weather-service namespace: webapp-ns spec: selector: app: weather-frontend ports: - protocol: TCP port: 80 targetPort: 80 type: NodePort