Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block mapping in parsing. #160

Open
sagarmujumale opened this issue Apr 25, 2024 · 1 comment
Open

Block mapping in parsing. #160

sagarmujumale opened this issue Apr 25, 2024 · 1 comment

Comments

@sagarmujumale
Copy link

With custom values its whowing below error
^^^^^^^^^^^^^^^^^^^^^^
File "yaml/_yaml.pyx", line 673, in yaml._yaml.CParser.get_single_node
File "yaml/_yaml.pyx", line 687, in yaml._yaml.CParser._compose_document
File "yaml/_yaml.pyx", line 731, in yaml._yaml.CParser._compose_node
File "yaml/_yaml.pyx", line 845, in yaml._yaml.CParser._compose_mapping_node
File "yaml/_yaml.pyx", line 731, in yaml._yaml.CParser._compose_node
File "yaml/_yaml.pyx", line 847, in yaml._yaml.CParser._compose_mapping_node
File "yaml/_yaml.pyx", line 860, in yaml._yaml.CParser._parse_next_event
yaml.parser.ParserError: while parsing a block mapping
in "", line 3, column 3
did not find expected key
in "", line 33, column 5
fatal: [localhost]: FAILED! => {
"changed": false

Used Below values in helm chart deployment.
certManager:

DaemonSet or Deployment

kind: DaemonSet
replicaCount: 1

image:
repository: joeelliott/cert-exporter
# The default tag is ".Chart.AppVersion", only set "tag" to override that
tag:
pullPolicy: IfNotPresent
command: ["./app"]
args:
- --secrets-annotation-selector=cert-manager.io/certificate-name
- --secrets-include-glob=*.crt
- --logtostderr
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

podAnnotations: {}

environment: prod

prometheus.io/scrape: true
prometheus.io/port: 8080
prometheus.io/path: /metrics

podSecurityContext: {}
fsGroup: 2000

securityContext: {}
# capabilities:
# drop:s
# - ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000

resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}

volumes: []
- name: kubelet
hostPath:
path: /var/lib/kubelet
type: Directory
volumeMounts: []
- mountPath: /var/lib/kubelet/pki
mountPropagation: HostToContainer
name: kubelet
readOnly: true

service:
type: ClusterIP
port: 8081

portName: http-metrics

Annotations to add to the service

annotations: {}

Requires prometheus-operator to be installed

serviceMonitor:
create: true

# cannot be empty
additionalLabels:
  prometheus.io/load-rule: "true"

## Scrape interval. If not set, the Prometheus default scrape interval is used.
##
interval: 20s

## metric relabel configs to apply to samples before ingestion.
##
metricRelabelings: []
- action: keep
  regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
  sourceLabels: [__name__]

# relabel configs to apply to samples before ingestion.
##
relabelings: []
- sourceLabels: [__meta_kubernetes_pod_node_name]
  separator: ;
  regex: ^(.*)$
  targetLabel: nodename
  replacement: $1
  action: replace

rbac:
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: cert-exporter

clusterRole:
# New role to grant to the service account
create: true
# Annotations to add to the service account
annotations: {}
# Rules for the Role
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]

clusterRoleBinding:
create: true

dashboards:

Labels to add to all dashboard ConfigMaps

additionalLabels:
grafana_dashboard: "1"
certManagerDashboard:
create: true
namespace: cert-exporter

@sagarmujumale
Copy link
Author

its not generating cert_exporter_cert_expires_in_seconds and cert_exporter_kubeconfig_expires_in_seconds metrics.

  - --secrets-annotation-selector=cert-manager.io/certificate-name
  - --secrets-include-glob=*.crt
  - --secrets-include-glob=/etc/kubernetes/pki/*.crt
  - --secrets-include-glob=/etc/ssl/certs/*.crt

added in deployment still its not showing the metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant