Skip to content

Commit

Permalink
Merge pull request #28 from JacekZubielik/mktxp-exporter
Browse files Browse the repository at this point in the history
fix(code): fix code
  • Loading branch information
JacekZubielik authored May 22, 2024
2 parents 0d6243e + 07ffe0a commit 71fbb6f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 39 deletions.
2 changes: 1 addition & 1 deletion charts/mktxp-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
appVersion: gha-7614306238
description: Mikrotik MKTXP Prometheus exporter
name: mktxp-exporter
version: 0.0.1
version: 0.0.2
keywords:
- mikrotik-exporter
- mktxp-exporter
Expand Down
2 changes: 1 addition & 1 deletion charts/mktxp-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
{{- end }}
{{- with .Values.monitoring.serviceMonitor.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.monitoring.serviceMonitor.namespace }}
namespace: {{ .Values.monitoring.serviceMonitor.namespace }}
Expand Down
42 changes: 21 additions & 21 deletions charts/mktxp-exporter/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "app.selectorLabels" . | nindent 8 }}
Expand All @@ -40,10 +40,10 @@ spec:
runAsNonRoot: false
privileged: true
volumeMounts:
- name: config
- name: config
mountPath: /tmp/mktxp.conf
subPath: mktxp.conf
- name: data
subPath: mktxp.conf
- name: data
mountPath: /home/mktxp/mktxp
- name: setup-permissions
image: busybox
Expand All @@ -52,7 +52,7 @@ spec:
runAsNonRoot: false
privileged: true
volumeMounts:
- name: data
- name: data
mountPath: /home/mktxp/mktxp
containers:
- name: {{ .Chart.Name }}
Expand All @@ -68,33 +68,33 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
livenessProbe:
httpGet:
path: /
port: {{ .Values.service.port }}
scheme: HTTP
periodSeconds: 60
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 6
path: /
port: {{ .Values.service.port }}
scheme: HTTP
periodSeconds: 60
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 6
initialDelaySeconds: 10
readinessProbe:
httpGet:
path: /
port: {{ .Values.service.port }}
scheme: HTTP
periodSeconds: 60
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 2
path: /
port: {{ .Values.service.port }}
scheme: HTTP
periodSeconds: 60
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 2
initialDelaySeconds: 10
volumeMounts:
- name: data
- name: data
mountPath: /home/mktxp/mktxp
volumes:
- name: config
configMap:
name: {{ include "app.fullname" . }}
items:
- key: mktxp.conf
- key: mktxp.conf
path: mktxp.conf
mode: 0644
- name: data
Expand Down
23 changes: 7 additions & 16 deletions charts/mktxp-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ updateStrategy:
# maxUnavailable: 0
# maxSurge: 1

# serviceAccount:
# create: false
# annotations: {}
# automountServiceAccountToken: false
# podAnnotations: {}
serviceAccount:
create: false
annotations: {}
automountServiceAccountToken: false
podAnnotations: {}

podSecurityContext:
runAsUser: 100
Expand All @@ -32,27 +32,18 @@ service:
port: 49090

resources: {}

nodeSelector:
kubernetes.io/hostname: {}

nodeSelector: {}
tolerations: []

affinity: {}

persistence:
storageClassName: local-path
size: 1Gi

# ingress:
# enabled: false
# ingressClassName: traefik
# domainName: {}
# secretName: cluster-tls

monitoring:
enabled: false
serviceMonitor:
annotations: {}
enabled: false
interval: 60s
labels: {}
Expand Down

0 comments on commit 71fbb6f

Please sign in to comment.