-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,340 @@ | ||
--- | ||
# Source: k8s-monitoring/charts/alloy-metrics/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: k8smon-alloy-metrics | ||
namespace: default | ||
labels: | ||
helm.sh/chart: alloy-metrics-0.10.0 | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
|
||
Check failure on line 12 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
app.kubernetes.io/version: "v1.5.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: alloy | ||
app.kubernetes.io/component: rbac | ||
--- | ||
# Source: k8s-monitoring/templates/alloy-config.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: k8smon-alloy-metrics | ||
namespace: default | ||
data: | ||
config.alloy: |- | ||
Check failure on line 26 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
Check failure on line 27 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
Check failure on line 28 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
remotecfg { | ||
url = "https://fleet-management-prod-008.grafana.net" | ||
basic_auth { | ||
username = env("GRAFANA_CLOUD_FLEET_MGMT_USER") | ||
password = env("GRAFANA_CLOUD_FLEET_MGMT_TOKEN") | ||
} | ||
id = "remote-config-platform-test-default-" + constants.hostname | ||
poll_frequency = "5m" | ||
attributes = { | ||
"cluster" = "remote-config-platform-test", | ||
"platform" = "kubernetes", | ||
"workloadType" = "statefulset", | ||
} | ||
} | ||
--- | ||
# Source: k8s-monitoring/charts/alloy-metrics/templates/rbac.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: k8smon-alloy-metrics | ||
labels: | ||
helm.sh/chart: alloy-metrics-0.10.0 | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
|
||
Check failure on line 53 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
app.kubernetes.io/version: "v1.5.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: alloy | ||
app.kubernetes.io/component: rbac | ||
rules: | ||
# Rules which allow discovery.kubernetes to function. | ||
- apiGroups: | ||
- "" | ||
- "discovery.k8s.io" | ||
- "networking.k8s.io" | ||
resources: | ||
- endpoints | ||
- endpointslices | ||
- ingresses | ||
- nodes | ||
- nodes/proxy | ||
- nodes/metrics | ||
- pods | ||
- services | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
# Rules which allow loki.source.kubernetes and loki.source.podlogs to work. | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
- pods/log | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "monitoring.grafana.com" | ||
resources: | ||
- podlogs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
# Rules which allow mimir.rules.kubernetes to work. | ||
- apiGroups: ["monitoring.coreos.com"] | ||
resources: | ||
- prometheusrules | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- nonResourceURLs: | ||
- /metrics | ||
verbs: | ||
- get | ||
# Rules for prometheus.kubernetes.* | ||
- apiGroups: ["monitoring.coreos.com"] | ||
resources: | ||
- podmonitors | ||
- servicemonitors | ||
- probes | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
# Rules which allow eventhandler to work. | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
# needed for remote.kubernetes.* | ||
- apiGroups: [""] | ||
resources: | ||
- "configmaps" | ||
- "secrets" | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
# needed for otelcol.processor.k8sattributes | ||
- apiGroups: ["apps"] | ||
resources: ["replicasets"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["extensions"] | ||
resources: ["replicasets"] | ||
verbs: ["get", "list", "watch"] | ||
--- | ||
# Source: k8s-monitoring/charts/alloy-metrics/templates/rbac.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: k8smon-alloy-metrics | ||
labels: | ||
helm.sh/chart: alloy-metrics-0.10.0 | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
|
||
Check failure on line 153 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
app.kubernetes.io/version: "v1.5.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: alloy | ||
app.kubernetes.io/component: rbac | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: k8smon-alloy-metrics | ||
subjects: | ||
- kind: ServiceAccount | ||
name: k8smon-alloy-metrics | ||
namespace: default | ||
--- | ||
# Source: k8s-monitoring/charts/alloy-metrics/templates/cluster_service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: k8smon-alloy-metrics-cluster | ||
labels: | ||
helm.sh/chart: alloy-metrics-0.10.0 | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
|
||
Check failure on line 176 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
app.kubernetes.io/version: "v1.5.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: alloy | ||
app.kubernetes.io/component: networking | ||
spec: | ||
type: ClusterIP | ||
clusterIP: 'None' | ||
publishNotReadyAddresses: true | ||
selector: | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
ports: | ||
# Do not include the -metrics suffix in the port name, otherwise metrics | ||
# can be double-collected with the non-headless Service if it's also | ||
# enabled. | ||
# | ||
# This service should only be used for clustering, and not metric | ||
# collection. | ||
- name: http | ||
port: 12345 | ||
targetPort: 12345 | ||
protocol: "TCP" | ||
--- | ||
# Source: k8s-monitoring/charts/alloy-metrics/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: k8smon-alloy-metrics | ||
labels: | ||
helm.sh/chart: alloy-metrics-0.10.0 | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
|
||
Check failure on line 209 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
app.kubernetes.io/version: "v1.5.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: alloy | ||
app.kubernetes.io/component: networking | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
internalTrafficPolicy: Cluster | ||
ports: | ||
- name: http-metrics | ||
port: 12345 | ||
targetPort: 12345 | ||
protocol: "TCP" | ||
--- | ||
# Source: k8s-monitoring/charts/alloy-metrics/templates/controllers/statefulset.yaml | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: k8smon-alloy-metrics | ||
labels: | ||
helm.sh/chart: alloy-metrics-0.10.0 | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
|
||
Check failure on line 235 in charts/k8s-monitoring/tests/platform/remote-config/.rendered/output.yaml GitHub Actions / runner / yamllint
|
||
app.kubernetes.io/version: "v1.5.0" | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: alloy | ||
spec: | ||
replicas: 1 | ||
podManagementPolicy: Parallel | ||
minReadySeconds: 10 | ||
serviceName: k8smon-alloy-metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
template: | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/default-container: alloy | ||
k8s.grafana.com/logs.job: integrations/alloy | ||
labels: | ||
app.kubernetes.io/name: alloy-metrics | ||
app.kubernetes.io/instance: k8smon | ||
spec: | ||
serviceAccountName: k8smon-alloy-metrics | ||
containers: | ||
- name: alloy | ||
image: docker.io/grafana/alloy:v1.5.0 | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- run | ||
- /etc/alloy/config.alloy | ||
- --storage.path=/tmp/alloy | ||
- --server.http.listen-addr=0.0.0.0:12345 | ||
- --server.http.ui-path-prefix=/ | ||
- --cluster.enabled=true | ||
- --cluster.join-addresses=k8smon-alloy-metrics-cluster | ||
- --cluster.name="alloy-metrics" | ||
- --stability.level=public-preview | ||
env: | ||
- name: ALLOY_DEPLOY_MODE | ||
value: "helm" | ||
- name: HOSTNAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
envFrom: | ||
- secretRef: | ||
name: grafana-cloud-credentials | ||
- configMapRef: | ||
name: test-variables | ||
ports: | ||
- containerPort: 12345 | ||
name: http-metrics | ||
readinessProbe: | ||
httpGet: | ||
path: /-/ready | ||
port: 12345 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
timeoutSeconds: 1 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
add: | ||
- CHOWN | ||
- DAC_OVERRIDE | ||
- FOWNER | ||
- FSETID | ||
- KILL | ||
- SETGID | ||
- SETUID | ||
- SETPCAP | ||
- NET_BIND_SERVICE | ||
- NET_RAW | ||
- SYS_CHROOT | ||
- MKNOD | ||
- AUDIT_WRITE | ||
- SETFCAP | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/alloy | ||
- name: config-reloader | ||
image: ghcr.io/jimmidyson/configmap-reload:v0.12.0 | ||
args: | ||
- --volume-dir=/etc/alloy | ||
- --webhook-url=http://localhost:12345/-/reload | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/alloy | ||
resources: | ||
requests: | ||
cpu: 1m | ||
memory: 5Mi | ||
dnsPolicy: ClusterFirst | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: k8smon-alloy-metrics | ||
--- | ||
# Source: k8s-monitoring/templates/remote_config_secret.yaml | ||
# create: false |