Skip to content

Instantly share code, notes, and snippets.

View JordiCorbilla's full-sized avatar
:bowtie:
Writing about Quantitative Finance and Machine Learning

Jordi Corbilla JordiCorbilla

:bowtie:
Writing about Quantitative Finance and Machine Learning
View GitHub Profile
apiVersion: v1
kind: Service
metadata:
name: trading-platform-service
spec:
selector:
app: trading-platform-pod
ports:
- port: 8080
targetPort: 80
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