Created
July 3, 2021 05:27
-
-
Save ozaydinb/288ca2bbf0523ab9337e58eafc28f2c4 to your computer and use it in GitHub Desktop.
sample gitlab service.yml
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: ${CI_PROJECT_NAME}-service | |
namespace: tim | |
spec: | |
type: NodePort | |
ports: | |
- port: 8080 | |
targetPort: 8080 | |
nodePort: ${NODE_PORT} | |
selector: | |
app: ${CI_PROJECT_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment