Skip to content

Commit

Permalink
p8s fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ReSearchITEng committed Jan 26, 2024
1 parent 073cebe commit 308169d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion group_vars/all/addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ helm:
- { name: rook-release, url: 'https://charts.rook.io/release' }
- { name: nfs-ganesha-server-and-external-provisioner, url: 'https://kubernetes-sigs.github.io/nfs-ganesha-server-and-external-provisioner/' }
- { name: minio, url: 'https://charts.min.io/' }
- { name: runix, url: 'https://helm.runix.net' }
packages_list: # when not defined, namespace defaults to "default" namespace
# use "--wait" in the options section if you want to wait till min. pods are up.
### List helm charts you wish pre-installed every time cluster is deployed:
Expand All @@ -57,7 +58,8 @@ helm:
########################
# k delete crd alertmanagers.monitoring.coreos.com prometheusrules.monitoring.coreos.com servicemonitors.monitoring.coreos.com prometheuses.monitoring.coreos.com podmonitors.monitoring.coreos.com
# helm install --name prometheus stable/prometheus-operator --namespace monitoring
- { name: prometheus, repo: prometheus-community/kube-prometheus-stack, namespace: monitoring, options: ' --timeout=15m --set prometheusOperator.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheusOperator.tolerations[0].effect=NoSchedule,prometheusOperator.tolerations[0].key="node-role.kubernetes.io/infra" --set prometheusOperator.tolerations[1].effect=PreferNoSchedule,prometheusOperator.tolerations[1].key="node-role.kubernetes.io/infra" --set prometheus.prometheusSpec.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheus.prometheusSpec.tolerations[0].effect=NoSchedule,prometheus.prometheusSpec.tolerations[0].key="node-role.kubernetes.io/infra" --set prometheus.prometheusSpec.tolerations[1].effect=PreferNoSchedule,prometheus.prometheusSpec.tolerations[1].key="node-role.kubernetes.io/infra" --set alertmanager.alertmanagerSpec.nodeSelector."node\-role\.kubernetes\.io/infra=" --set alertmanager.alertmanagerSpec.tolerations[0].effect=NoSchedule,alertmanager.alertmanagerSpec.tolerations[0].key="node-role.kubernetes.io/infra" --set alertmanager.alertmanagerSpec.tolerations[1].effect=PreferNoSchedule,alertmanager.alertmanagerSpec.tolerations[1].key="node-role.kubernetes.io/infra" --set grafana.nodeSelector."node\-role\.kubernetes\.io/infra=" --set grafana.tolerations[0].effect=NoSchedule,grafana.tolerations[0].key="node-role.kubernetes.io/infra" --set grafana.tolerations[1].effect=PreferNoSchedule,grafana.tolerations[1].key="node-role.kubernetes.io/infra" --set prometheus.ingress.enabled=True --set prometheus.ingress.pathType=Prefix --set prometheus.ingress.hosts[0]=prometheus.{{ custom.networking.dnsDomain }} --set grafana.ingress.enabled=True --set grafana.ingress.hosts[0]=grafana.{{ custom.networking.dnsDomain }} --set alertmanager.ingress.enabled=True --set alertmanager.ingress.pathType=Prefix --set alertmanager.ingress.hosts[0]=alertmanager.{{ custom.networking.dnsDomain }} --set prometheusOperator.image.registry={{ images_repo | default ("quay.io") }} --set prometheusOperator.configmapReload.image.registry={{ images_repo | default ("docker.io") }} --set prometheusOperator.prometheusConfigReloader.image.registry={{ images_repo | default ("quay.io") }} --set prometheusOperator.admissionWebhooks.patch.image.registry={{ images_repo | default ("registry.k8s.io") }} --set prometheus.prometheusSpec.image.registry={{ images_repo | default ("quay.io") }} --set alertmanager.alertmanagerSpec.image.registry={{ images_repo | default ("quay.io") }} --set alertmanager.configmapReload.image.registry={{ images_repo | default ("docker.io") }} --set grafana.image.repository={{ images_repo | default ("docker.io") }}/grafana/grafana --set kube-state-metrics.image.registry={{ images_repo | default ("registry.k8s.io") }} --set kube-state-metrics.tolerations[0].effect=NoSchedule,kube-state-metrics.tolerations[0].key="node-role.kubernetes.io/infra" --set kube-state-metrics.tolerations[1].effect=PreferNoSchedule,kube-state-metrics.tolerations[1].key="node-role.kubernetes.io/infra" --set kube-state-metrics.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheus-node-exporter.image.registry={{ images_repo | default ("quay.io") }} --set grafana.sidecar.image.repository={{ images_repo | default ("quay.io") }}/kiwigrid/k8s-sidecar --set grafana.imageRenderer.image.repository={{ images_repo | default ("docker.io") }}/grafana/grafana-image-renderer --set prometheusOperator.admissionWebhooks.enabled=false --set prometheusOperator.tls.enabled=false --set prometheus-node-exporter.hostRootFsMount.enable=false ' } # --set prometheus-node-exporter.hostRootFsMount=false # --set nodeExporter.hostRootfs=false --set nodeExporter.hostRootFsMount=false
- { name: prometheus, repo: prometheus-community/kube-prometheus-stack, namespace: monitoring, options: ' --timeout=15m --set prometheusOperator.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheusOperator.tolerations[0].effect=NoSchedule,prometheusOperator.tolerations[0].key="node-role.kubernetes.io/infra" --set prometheusOperator.tolerations[1].effect=PreferNoSchedule,prometheusOperator.tolerations[1].key="node-role.kubernetes.io/infra" --set prometheus.prometheusSpec.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheus.prometheusSpec.tolerations[0].effect=NoSchedule,prometheus.prometheusSpec.tolerations[0].key="node-role.kubernetes.io/infra" --set prometheus.prometheusSpec.tolerations[1].effect=PreferNoSchedule,prometheus.prometheusSpec.tolerations[1].key="node-role.kubernetes.io/infra" --set alertmanager.alertmanagerSpec.nodeSelector."node\-role\.kubernetes\.io/infra=" --set alertmanager.alertmanagerSpec.tolerations[0].effect=NoSchedule,alertmanager.alertmanagerSpec.tolerations[0].key="node-role.kubernetes.io/infra" --set alertmanager.alertmanagerSpec.tolerations[1].effect=PreferNoSchedule,alertmanager.alertmanagerSpec.tolerations[1].key="node-role.kubernetes.io/infra" --set grafana.nodeSelector."node\-role\.kubernetes\.io/infra=" --set grafana.tolerations[0].effect=NoSchedule,grafana.tolerations[0].key="node-role.kubernetes.io/infra" --set grafana.tolerations[1].effect=PreferNoSchedule,grafana.tolerations[1].key="node-role.kubernetes.io/infra" --set prometheus.ingress.enabled=True --set prometheus.ingress.pathType=Prefix --set prometheus.ingress.hosts[0]=prometheus.{{ custom.networking.dnsDomain }} --set grafana.ingress.enabled=True --set grafana.ingress.hosts[0]=grafana.{{ custom.networking.dnsDomain }} --set alertmanager.ingress.enabled=True --set alertmanager.ingress.pathType=Prefix --set alertmanager.ingress.hosts[0]=alertmanager.{{ custom.networking.dnsDomain }} --set prometheusOperator.image.registry={{ images_repo | default ("quay.io") }} --set prometheusOperator.configmapReload.image.registry={{ images_repo | default ("docker.io") }} --set prometheusOperator.prometheusConfigReloader.image.registry={{ images_repo | default ("quay.io") }} --set prometheusOperator.admissionWebhooks.patch.image.registry={{ images_repo | default ("registry.k8s.io") }} --set prometheus.prometheusSpec.image.registry={{ images_repo | default ("quay.io") }} --set alertmanager.alertmanagerSpec.image.registry={{ images_repo | default ("quay.io") }} --set alertmanager.configmapReload.image.registry={{ images_repo | default ("docker.io") }} --set grafana.image.registry={{ images_repo | default ("docker.io") }} --set kube-state-metrics.image.registry={{ images_repo | default ("registry.k8s.io") }} --set kube-state-metrics.tolerations[0].effect=NoSchedule,kube-state-metrics.tolerations[0].key="node-role.kubernetes.io/infra" --set kube-state-metrics.tolerations[1].effect=PreferNoSchedule,kube-state-metrics.tolerations[1].key="node-role.kubernetes.io/infra" --set kube-state-metrics.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheus-node-exporter.image.registry={{ images_repo | default ("quay.io") }} --set grafana.sidecar.image.registry={{ images_repo | default ("quay.io") }} --set grafana.imageRenderer.image.registry={{ images_repo | default ("docker.io") }} --set prometheusOperator.admissionWebhooks.enabled=false --set prometheusOperator.tls.enabled=false --set prometheus-node-exporter.hostRootFsMount.enable=false ' } # --set prometheus-node-exporter.hostRootFsMount=false # --set nodeExporter.hostRootfs=false --set nodeExporter.hostRootFsMount=false

#--set prometheus.ingress.enabled=True --set alertmanager.ingress.enabled=True # TEMP DISABLED DUE TO A BUG: is invalid: spec.rules[0].http.paths[0].pathType: Required value: pathType must be specified
# - { name: prometheus, repo: stable/prometheus-operator, namespace: monitoring, options: ' --timeout=15m --set prometheusOperator.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheusOperator.tolerations[0].effect=NoSchedule,prometheusOperator.tolerations[0].key="node-role.kubernetes.io/infra" --set prometheusOperator.tolerations[1].effect=PreferNoSchedule,prometheusOperator.tolerations[1].key="node-role.kubernetes.io/infra" --set prometheus.prometheusSpec.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheus.prometheusSpec.tolerations[0].effect=NoSchedule,prometheus.prometheusSpec.tolerations[0].key="node-role.kubernetes.io/infra" --set prometheus.prometheusSpec.tolerations[1].effect=PreferNoSchedule,prometheus.prometheusSpec.tolerations[1].key="node-role.kubernetes.io/infra" --set alertmanager.alertmanagerSpec.nodeSelector."node\-role\.kubernetes\.io/infra=" --set alertmanager.alertmanagerSpec.tolerations[0].effect=NoSchedule,alertmanager.alertmanagerSpec.tolerations[0].key="node-role.kubernetes.io/infra" --set alertmanager.alertmanagerSpec.tolerations[1].effect=PreferNoSchedule,alertmanager.alertmanagerSpec.tolerations[1].key="node-role.kubernetes.io/infra" --set grafana.nodeSelector."node\-role\.kubernetes\.io/infra=" --set grafana.tolerations[0].effect=NoSchedule,grafana.tolerations[0].key="node-role.kubernetes.io/infra" --set grafana.tolerations[1].effect=PreferNoSchedule,grafana.tolerations[1].key="node-role.kubernetes.io/infra" --set prometheus.ingress.enabled=True --set prometheus.ingress.hosts[0]=prometheus.{{ custom.networking.dnsDomain }} --set grafana.ingress.enabled=True --set grafana.ingress.hosts[0]=grafana.{{ custom.networking.dnsDomain }} --set alertmanager.ingress.enabled=True --set alertmanager.ingress.hosts[0]=alertmanager.{{ custom.networking.dnsDomain }} --set prometheusOperator.image.repository={{ images_repo | default ("quay.io") }}/coreos/prometheus-operator --set prometheusOperator.configmapReloadImage.repository={{ images_repo | default ("docker.io") }}/jimmidyson/configmap-reload --set prometheusOperator.prometheusConfigReloaderImage.repository={{ images_repo | default ("quay.io") }}/coreos/prometheus-config-reloader --set prometheusOperator.admissionWebhooks.patch.image={{ images_repo | default ("registry.k8s.io") }}/ingress-nginx/kube-webhook-certgen --set prometheus.prometheusSpec.image.repository={{ images_repo | default ("quay.io") }}/prometheus/prometheus --set alertmanager.alertmanagerSpec.image.repository={{ images_repo | default ("quay.io") }}/prometheus/alertmanager --set prometheusOperator.hyperkubeImage.repository={{ images_repo | default ("registry.k8s.io") }}/hyperkube --set grafana.image.repository={{ images_repo | default ("docker.io") }}/grafana/grafana --set kube-state-metrics.image.repository={{ images_repo | default ("quay.io") }}/coreos/kube-state-metrics --set kube-state-metrics.tolerations[0].effect=NoSchedule,kube-state-metrics.tolerations[0].key="node-role.kubernetes.io/infra" --set kube-state-metrics.tolerations[1].effect=PreferNoSchedule,kube-state-metrics.tolerations[1].key="node-role.kubernetes.io/infra" --set kube-state-metrics.nodeSelector."node\-role\.kubernetes\.io/infra=" --set prometheus-node-exporter.image.repository={{ images_repo | default ("quay.io") }}/prometheus/node-exporter ' } # --set prometheusOperator.admissionWebhooks.enabled=false

Expand Down Expand Up @@ -156,3 +158,7 @@ helm:
#
#

##############################
## PGAdmin4 Postgress UI ##
##############################
#- { name: pgadmin4, repo: runix/pgadmin4, namespace: pg, options: '--set persistentVolume.size="1Gi" --set image.registry={{ images_repo | default ("docker.io") }}' }

0 comments on commit 308169d

Please sign in to comment.