Last active
September 9, 2019 15:37
-
-
Save victorsteven/9609be1698586313c145e36f4347d88d to your computer and use it in GitHub Desktop.
This file contains 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 # Type of the kubernetes resource | |
metadata: | |
name: fullstack-app-postgres # Name of the Kubernetes resource | |
labels: # Labels that will be applied to the resource | |
app: fullstack-app-postgres | |
spec: | |
type: NodePort # Gives each node an external IP that’s accessible from outside the cluster and also opens a Port. | |
selector: | |
app: fullstack-app-postgres # Selects any Pod with labels `app=fullstack-app-postgres` | |
ports: | |
- name: http | |
port: 8080 | |
targetPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment