diff --git a/charts/incubator/prometheus/Chart.yaml b/charts/incubator/prometheus/Chart.yaml index 6d75a8886b1..e4074ca4643 100644 --- a/charts/incubator/prometheus/Chart.yaml +++ b/charts/incubator/prometheus/Chart.yaml @@ -20,7 +20,7 @@ sources: - https://github.com/prometheus-community/helm-charts - https://github.com/prometheus-operator/kube-prometheus type: application -version: 0.0.1 +version: 0.0.2 annotations: truecharts.org/catagories: | - metrics diff --git a/charts/incubator/prometheus/questions.yaml b/charts/incubator/prometheus/questions.yaml index e7ca9efc668..8e136c3668f 100644 --- a/charts/incubator/prometheus/questions.yaml +++ b/charts/incubator/prometheus/questions.yaml @@ -38,7 +38,186 @@ questions: schema: type: boolean default: false - + - variable: service + group: "Networking and Services" + label: "Configure Service(s)" + schema: + type: dict + attrs: + - variable: main + label: "Main Service" + description: "The serving the Prometheus WebUI" + schema: + type: dict + attrs: +# Include{serviceSelector} + - variable: main + label: "Main Service Port Configuration" + schema: + type: dict + attrs: + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabled + label: "Enable the port" + schema: + type: boolean + default: true + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 9090 + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10086 + required: true + - variable: promop + label: "Operator Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + type: dict + attrs: +# Include{serviceSelector} + - variable: promop + label: "Operator Service Port Configuration" + schema: + type: dict + attrs: + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabled + label: "Enable the port" + schema: + type: boolean + default: true + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 8080 + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10089 + required: true + - variable: alertmanager + label: "Main Service" + description: "alertmanager service " + schema: + type: dict + attrs: +# Include{serviceSelector} + - variable: alertmanager + label: "alertmanager Service Port Configuration" + schema: + type: dict + attrs: + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabled + label: "Enable the port" + schema: + type: boolean + default: true + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 9093 + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10087 + required: true # Include{serviceExpert} # Include{serviceList} diff --git a/charts/incubator/prometheus/values.yaml b/charts/incubator/prometheus/values.yaml index b06e77ed175..a5bdbe2cf2b 100644 --- a/charts/incubator/prometheus/values.yaml +++ b/charts/incubator/prometheus/values.yaml @@ -24,7 +24,7 @@ service: prometheus: '{{ template "kube-prometheus.prometheus.fullname" . }}' ports: main: - port: 9090 + port: 10086 targetPort: 9090 protocol: HTTP promop: @@ -32,7 +32,7 @@ service: ports: promop: enabled: true - port: 8080 + port: 10089 targetPort: 8080 protocol: HTTP alertmanager: @@ -41,7 +41,7 @@ service: alertmanager: '{{ template "kube-prometheus.alertmanager.fullname" . }}' ports: alertmanager: - port: 9093 + port: 10087 targetPort: 9093 protocol: HTTP thanos: