无法为Prometheus创建Ingress

时间:2019-03-25 09:41:35

标签: kubernetes google-cloud-platform prometheus google-kubernetes-engine

我想为普罗米修斯创建一个条目。

我已经像这样部署了function formatDate(datetime) { var date = new Date(datetime); var hours = date.getHours(); var minutes = date.getMinutes(); var seconds = date.getSeconds(); var strTime = hours+':'+minutes+ ':' + seconds; return ('0' + (date.getMonth()+1)).slice(-2) + "." +('0' + (date.getDate())).slice(-2) + "."+ date.getFullYear() + " " + strTime; } console.log(formatDate('2013-08-07 20:53:35')); 服务:

nodePort

我的入口是:

---
apiVersion: v1
kind: Service
metadata:
 name: prometheus
 namespace: monitoring
labels:
 app: prometheus
spec:
 type: NodePort
 ports:
  - port: 9090
    targetPort: 9090
    nodePort: 31190
    protocol: TCP
selector:
 app: prometheus

您能解释一下为什么我的入口无法正常工作吗?

0 个答案:

没有答案