Services:
Service is a method for exposing a network application that is running as one or more Pods in your cluster.
The Service API is an abstraction to help you expose groups of Pods over a network. Each Service object defines a logical set of endpoints (usually these endpoints are Pods) along with a policy about how to make those pods accessible.
service.yaml
apiVersion: v1
kind: Service
metadata:
name: test
spec:
selector:
app:scale
ports:
- protocol: TCP
port: 80
targetport: 8080
No comments:
Post a Comment