18 lines
261 B
YAML
18 lines
261 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: blog-balancer
|
||
|
labels:
|
||
|
app: blog-balancer
|
||
|
|
||
|
spec:
|
||
|
type: LoadBalancer
|
||
|
ports:
|
||
|
- name: blog-balancer
|
||
|
port: 80
|
||
|
protocol: TCP
|
||
|
targetPort: 3000
|
||
|
selector:
|
||
|
app: blog-dep
|
||
|
sessionAffinity: None
|