-
-
Save dev-scripts/9cd5c91abc9ec1a2aa145081eed23cbf to your computer and use it in GitHub Desktop.
service.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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