13 lines
197 B
YAML
13 lines
197 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: k8s-poc-nginx-service
|
|
spec:
|
|
type: LoadBalancer
|
|
selector:
|
|
app: nginx
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
name: http
|
|
protocol: TCP
|