Skip to content

Instantly share code, notes, and snippets.

@dev-scripts
Last active August 26, 2023 00:44
Show Gist options
  • Select an option

  • Save dev-scripts/9cd5c91abc9ec1a2aa145081eed23cbf to your computer and use it in GitHub Desktop.

Select an option

Save dev-scripts/9cd5c91abc9ec1a2aa145081eed23cbf to your computer and use it in GitHub Desktop.
service.yaml
apiVersion: v1
kind: Service
metadata:
name: web-app
spec:
selector:
app: web-app # This should match the label in your Deployment
ports:
- port: 80
targetPort: 80
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment