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: trading-platform-service | |
spec: | |
selector: | |
app: trading-platform-pod | |
ports: | |
- port: 8080 | |
targetPort: 80 |
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
PS C:\Users\thund\Source\Repos\TradingPlatform> kubectl apply -f .\service.yml | |
service/trading-platform-service created | |
PS C:\Users\thund\Source\Repos\TradingPlatform> kubectl get services | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4d10h | |
trading-platform-service LoadBalancer 10.110.193.37 localhost 8080:30435/TCP 13s |
OlderNewer