-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authentication using TLS certs + few metrics for civ2 ux + update rel…
…ease notes (#671) * Removing duplicate alerts from ci recommended alerts * Remove test branch * Remove preview keyword from policy readme * Test mtls ref app * . * update main go * . * . * . * . * . * . * adding secret to chart * . * . * . * . * . * [WIP] update secret locations * switch directory * switch from opt dir since it overwrites main sh * fix typo * [WIP]Put the certs in same dir in ref app * [WIP] update secret name * Testing SAN IP error * . * update cert to use daemonset node ip * use extension to add ip san since cnf did not work * . * Update configmaps for http & https ports * Adding tls config in reference app podmonitor * adding liveness probe for cert volume * add role binding to make podmonitor work * correct pod monitor cert * Update the mount location similar to oss location * switch file path inside ref app * Test CRD changes * Testing crd changes * [wip]testing crd * . * testing old location to start app * update the location back * correct the folder structure for new directory * make certificate copy for crd * update location in liveness probe * Create separate secrets for configmap path and CRD path and update liveness probe * update image for mtls ref app * update cluster role * using single secret for both crd & cm * remove role binding yaml * Remove leftover test secrets * Remove unused /var/tmp directory from liveness probe * Remove redundant openssl client config file * remove branch name * add back branch * Add below metrics for civ2 Ux `target=cadvisor` container_start_time_seconds `target=kube-state` kube_pod_container_status_ready kube_pod_init_container_* kube_pod_deletion_timestamp kube_pod_status_reason kube_pod_init_container_resource_requests * update release notes for 2/8 release * fix commas * remove private keys --------- Co-authored-by: vishwanath <[email protected]>
- Loading branch information
1 parent
fbfe7ae
commit 906836d
Showing
14 changed files
with
183 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
scrape_configs: | ||
- job_name: prometheus_ref_app_1 | ||
scheme: http | ||
scrape_interval: 60s | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
- source_labels: [__meta_kubernetes_pod_label_app] | ||
action: keep | ||
regex: "prometheus-reference-app" | ||
- source_labels: [__address__] | ||
action: replace | ||
target_label: __param_target | ||
regex: ":2113" | ||
- source_labels: [__param_target] | ||
action: keep | ||
regex: "2113" | ||
- action: drop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
scrape_configs: | ||
- job_name: prometheus_ref_app | ||
scheme: https | ||
scrape_interval: 60s | ||
tls_config: | ||
ca_file: /etc/prometheus/certs/client-cert.pem | ||
cert_file: /etc/prometheus/certs/client-cert.pem | ||
key_file: /etc/prometheus/certs/client-key.pem | ||
insecure_skip_verify: false | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
- source_labels: [__meta_kubernetes_pod_label_app] | ||
action: keep | ||
regex: "prometheus-reference-app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
scrape_configs: | ||
- job_name: prometheus_ref_app | ||
scheme: http | ||
scrape_interval: 60s | ||
tls_config: | ||
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca/ca-cert.pem | ||
cert_file: /var/run/secrets/kubernetes.io/serviceaccount/client/client-cert.pem | ||
key_file: /var/run/secrets/kubernetes.io/serviceaccount/client/client-key.pem | ||
insecure_skip_verify: false | ||
kubernetes_sd_configs: | ||
- role: pod | ||
relabel_configs: | ||
- source_labels: [__meta_kubernetes_pod_label_app] | ||
action: keep | ||
regex: "prometheus-reference-app" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: prometheus-reference-app | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: prometheus-reference-app | ||
template: | ||
metadata: | ||
labels: | ||
app: prometheus-reference-app | ||
spec: | ||
containers: | ||
- name: prometheus-reference-app-golang | ||
image: mcr.microsoft.com/azuremonitor/containerinsights/cidev/prometheus-collector/images:6.8.1-testTLS-11-10-2023-afd40f4c-ref-app-golang | ||
env: | ||
- name: RUN_PERF_TEST | ||
value: "false" | ||
- name: SCRAPE_INTERVAL | ||
value: "15" | ||
- name: METRIC_COUNT | ||
value: "125000" | ||
ports: | ||
- containerPort: 2112 | ||
protocol: TCP | ||
- containerPort: 2113 | ||
protocol: TCP | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
architecture: amd64 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: prometheus-reference-service | ||
labels: | ||
app: prometheus-reference-app | ||
spec: | ||
selector: | ||
app: prometheus-reference-app | ||
ports: | ||
- name: "weather-app" | ||
protocol: TCP | ||
port: 2112 | ||
targetPort: 2112 | ||
- name: "untyped-metrics" | ||
protocol: TCP | ||
port: 2113 | ||
targetPort: 2113 | ||
- name: "python-client" | ||
protocol: TCP | ||
port: 2114 | ||
targetPort: 2114 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.8.3 | ||
6.8.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.