mirror of https://github.com/sgoudham/k8s
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
328 B
YAML
20 lines
328 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: website
|
|
name: website
|
|
namespace: website
|
|
spec:
|
|
internalTrafficPolicy: Cluster
|
|
ipFamilies:
|
|
- IPv4
|
|
ipFamilyPolicy: SingleStack
|
|
ports:
|
|
- port: 3000
|
|
protocol: TCP
|
|
targetPort: 3000
|
|
selector:
|
|
app: website
|
|
sessionAffinity: None
|
|
type: ClusterIP |