Prometheus Operations: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Prometheus") |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Prometheus#Subjects|Prometheus]] | * [[Prometheus#Subjects|Prometheus]] | ||
=Expose Console= | |||
Define prometheus-kube-prometheus-prometheus-lb.yaml: | |||
<syntaxhighlight lang='bash'> | |||
namespace="prometheus" | |||
cat <<EOF | kubectl -n ${namespace} -f - | |||
apiVersion: v1 | |||
kind: Service | |||
metadata: | |||
annotations: | |||
meta.helm.sh/release-name: prometheus | |||
meta.helm.sh/release-namespace: prometheus | |||
labels: | |||
app: kube-prometheus-stack-operator | |||
app.kubernetes.io/managed-by: Helm | |||
chart: kube-prometheus-stack-10.1.0 | |||
heritage: Helm | |||
release: prometheus | |||
name: prometheus-kube-prometheus-prometheus-lb | |||
namespace: prometheus | |||
spec: | |||
type: LoadBalancer | |||
ports: | |||
- name: http | |||
port: 9090 | |||
protocol: TCP | |||
targetPort: 9090 | |||
selector: | |||
app: prometheus | |||
prometheus: prometheus-kube-prometheus-prometheus | |||
EOF | |||
</syntaxhighlight> |
Revision as of 21:23, 14 October 2020
Internal
Expose Console
Define prometheus-kube-prometheus-prometheus-lb.yaml:
namespace="prometheus"
cat <<EOF | kubectl -n ${namespace} -f -
apiVersion: v1
kind: Service
metadata:
annotations:
meta.helm.sh/release-name: prometheus
meta.helm.sh/release-namespace: prometheus
labels:
app: kube-prometheus-stack-operator
app.kubernetes.io/managed-by: Helm
chart: kube-prometheus-stack-10.1.0
heritage: Helm
release: prometheus
name: prometheus-kube-prometheus-prometheus-lb
namespace: prometheus
spec:
type: LoadBalancer
ports:
- name: http
port: 9090
protocol: TCP
targetPort: 9090
selector:
app: prometheus
prometheus: prometheus-kube-prometheus-prometheus
EOF