I am having trouble exposing ports other than port 80 on my Google Cloud Kubernetes cluster. Below is the Kubernetes service yaml file, but for some reason only port 80 is exposed. I have SSHed into the pods and can confirm that they are internally serving on the other ports listed below, but they don't seem to be exposed.
Any insight into the problem or what I should check to debug it?
apiVersion: v1
kind: Service
metadata:
name: my-frontend
namespace: ocr-cluster
labels:
component: ocr
spec:
type: LoadBalancer
selector:
component: ocr
ports:
# Working:
- name: http
port: 80
protocol: TCP
# Not working
- name: rabbit
port: 15672
protocol: TCP
- name: flower
port: 5555
protocol: TCP