You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
448 B
23 lines
448 B
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: fruits
|
|
labels:
|
|
app: fruits
|
|
app.kubernetes.io/component: fruits
|
|
app.kubernetes.io/instance: fruits
|
|
app.kubernetes.io/name: fruits
|
|
spec:
|
|
ports:
|
|
- name: 8080-tcp
|
|
protocol: TCP
|
|
port: 8080
|
|
targetPort: 8080
|
|
- name: 8443-tcp
|
|
protocol: TCP
|
|
port: 8443
|
|
targetPort: 8443
|
|
type: ClusterIP
|
|
sessionAffinity: None
|
|
selector:
|
|
deployment: fruits
|
|
|