Regenerate manifests. Set all additional modules and persistence to false by default

This commit is contained in:
CarlosEDP 2019-04-08 16:42:26 -03:00
parent 3487ade880
commit 651c0cfe49
20 changed files with 2 additions and 6128 deletions

View File

@ -1,52 +0,0 @@
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
labels:
k8s-app: arm-exporter
name: arm-exporter
namespace: monitoring
spec:
selector:
matchLabels:
k8s-app: arm-exporter
template:
metadata:
labels:
k8s-app: arm-exporter
spec:
containers:
- command:
- /bin/rpi_exporter
- --web.listen-address=127.0.0.1:9243
image: carlosedp/arm_exporter:latest
name: arm-exporter
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 50m
memory: 50Mi
- args:
- --secure-listen-address=$(IP):9243
- --upstream=http://127.0.0.1:9243/
env:
- name: IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: carlosedp/kube-rbac-proxy:v0.4.1
name: kube-rbac-proxy
ports:
- containerPort: 9243
hostPort: 9243
name: https
resources:
limits:
cpu: 20m
memory: 40Mi
requests:
cpu: 10m
memory: 20Mi
nodeSelector:
beta.kubernetes.io/arch: arm64

View File

@ -1,15 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: arm-exporter
name: arm-exporter
namespace: monitoring
spec:
clusterIP: None
ports:
- name: https
port: 9243
targetPort: https
selector:
k8s-app: arm-exporter

View File

@ -1,19 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: arm-exporter
name: arm-exporter
namespace: monitoring
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
interval: 30s
port: https
scheme: https
tlsConfig:
insecureSkipVerify: true
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: arm-exporter

View File

@ -1,73 +0,0 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
labels:
k8s-app: elasticsearch-exporter
name: elasticsearch-exporter
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
k8s-app: elasticsearch-exporter
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
k8s-app: elasticsearch-exporter
spec:
containers:
- command:
- /bin/elasticsearch_exporter
- -es.uri=http://elasticsearch.logging.svc:9200
- -es.timeout=60s
- -es.all=true
image: carlosedp/elasticsearch-exporter:1.0.4rc1
livenessProbe:
httpGet:
path: /health
port: 9108
initialDelaySeconds: 30
timeoutSeconds: 10
name: elasticsearch-exporter
ports:
- containerPort: 9108
name: es-metrics
readinessProbe:
httpGet:
path: /health
port: 9108
initialDelaySeconds: 30
timeoutSeconds: 10
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 25m
memory: 64Mi
securityContext:
capabilities:
drop:
- SETPCAP
- MKNOD
- AUDIT_WRITE
- CHOWN
- NET_RAW
- DAC_OVERRIDE
- FOWNER
- FSETID
- KILL
- SETGID
- SETUID
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
restartPolicy: Always

View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: elasticsearch-exporter
name: elasticsearch-exporter
namespace: monitoring
spec:
ports:
- name: es-metrics
port: 9108
targetPort: es-metrics
selector:
k8s-app: elasticsearch-exporter

View File

@ -1,19 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: elasticsearch-exporter
name: elasticsearch-exporter
namespace: monitoring
spec:
endpoints:
- interval: 30s
port: es-metrics
scheme: http
jobLabel: k8s-app
namespaceSelector:
matchNames:
- monitoring
selector:
matchLabels:
k8s-app: elasticsearch-exporter

View File

@ -1,19 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: fluentd-es
name: fluentd-es
namespace: monitoring
spec:
endpoints:
- interval: 30s
port: metrics
scheme: http
jobLabel: k8s-app
namespaceSelector:
matchNames:
- logging
selector:
matchLabels:
k8s-app: fluentd-es

File diff suppressed because it is too large Load Diff

View File

@ -42,18 +42,9 @@ spec:
- mountPath: /etc/grafana/provisioning/dashboards
name: grafana-dashboards
readOnly: false
- mountPath: /grafana-dashboard-definitions/0/apc-ups-dashboard
name: grafana-dashboard-apc-ups-dashboard
readOnly: false
- mountPath: /grafana-dashboard-definitions/0/coredns-dashboard
name: grafana-dashboard-coredns-dashboard
readOnly: false
- mountPath: /grafana-dashboard-definitions/0/elasticsearch-dashboard
name: grafana-dashboard-elasticsearch-dashboard
readOnly: false
- mountPath: /grafana-dashboard-definitions/0/fluentd-dashboard
name: grafana-dashboard-fluentd-dashboard
readOnly: false
- mountPath: /grafana-dashboard-definitions/0/k8s-cluster-rsrc-use
name: grafana-dashboard-k8s-cluster-rsrc-use
readOnly: false
@ -87,9 +78,6 @@ spec:
- mountPath: /grafana-dashboard-definitions/0/statefulset
name: grafana-dashboard-statefulset
readOnly: false
- mountPath: /grafana-dashboard-definitions/0/traefik-dashboard
name: grafana-dashboard-traefik-dashboard
readOnly: false
- mountPath: /etc/grafana
name: grafana-config
readOnly: false
@ -100,27 +88,17 @@ spec:
runAsUser: 65534
serviceAccountName: grafana
volumes:
- name: grafana-storage
persistentVolumeClaim:
claimName: grafana-storage
- emptyDir: {}
name: grafana-storage
- name: grafana-datasources
secret:
secretName: grafana-datasources
- configMap:
name: grafana-dashboards
name: grafana-dashboards
- configMap:
name: grafana-dashboard-apc-ups-dashboard
name: grafana-dashboard-apc-ups-dashboard
- configMap:
name: grafana-dashboard-coredns-dashboard
name: grafana-dashboard-coredns-dashboard
- configMap:
name: grafana-dashboard-elasticsearch-dashboard
name: grafana-dashboard-elasticsearch-dashboard
- configMap:
name: grafana-dashboard-fluentd-dashboard
name: grafana-dashboard-fluentd-dashboard
- configMap:
name: grafana-dashboard-k8s-cluster-rsrc-use
name: grafana-dashboard-k8s-cluster-rsrc-use
@ -154,9 +132,6 @@ spec:
- configMap:
name: grafana-dashboard-statefulset
name: grafana-dashboard-statefulset
- configMap:
name: grafana-dashboard-traefik-dashboard
name: grafana-dashboard-traefik-dashboard
- name: grafana-config
secret:
secretName: grafana-config

View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grafana-storage
namespace: monitoring
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi

View File

@ -1,16 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: metallb-controller
name: metallb-controller
namespace: metallb-system
spec:
clusterIP: None
ports:
- name: http
port: 7472
targetPort: 7472
selector:
app: metallb
component: controller

View File

@ -1,19 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: metallb-controller
name: metallb
namespace: monitoring
spec:
endpoints:
- interval: 30s
port: http
scheme: http
jobLabel: k8s-app
namespaceSelector:
matchNames:
- metallb-system
selector:
matchLabels:
k8s-app: metallb-controller

View File

@ -45,14 +45,4 @@ spec:
serviceAccountName: prometheus-k8s
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
storage:
volumeClaimTemplate:
apiVersion: v1
kind: PersistentVolumeClaim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
version: v2.7.0

View File

@ -39,30 +39,4 @@ items:
- kind: ServiceAccount
name: prometheus-k8s
namespace: monitoring
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: metallb-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: prometheus-k8s
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: monitoring
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: logging
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: prometheus-k8s
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: monitoring
kind: RoleBindingList

View File

@ -48,36 +48,4 @@ items:
- get
- list
- watch
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: prometheus-k8s
namespace: metallb-system
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: prometheus-k8s
namespace: logging
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
kind: RoleList

View File

@ -319,32 +319,6 @@ spec:
- expr: cluster:node_cpu_seconds_total:rate5m / count(sum(node_cpu_seconds_total)
BY (instance, cpu))
record: cluster:node_cpu:ratio
- name: elasticsearch-k8s-rules
rules:
- expr: 100 * (elasticsearch_filesystem_data_size_bytes - elasticsearch_filesystem_data_free_bytes)
/ elasticsearch_filesystem_data_size_bytes
record: elasticsearch_filesystem_data_used_percent
- expr: 100 - elasticsearch_filesystem_data_used_percent
record: elasticsearch_filesystem_data_free_percent
- alert: ElasticsearchTooFewNodesRunning
annotations:
message: There are only {{$value}} < 3 ElasticSearch nodes running
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-elasticsearchtoofewnodesrunning
summary: ElasticSearch running on less than 3 nodes
expr: elasticsearch_cluster_health_number_of_nodes < 3
for: 5m
labels:
severity: critical
- alert: ElasticsearchHeapTooHigh
annotations:
message: The heap usage is over 90% for 15m
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-elasticsearchheaptoohigh
summary: ElasticSearch node {{$labels.node}} heap usage is high
expr: elasticsearch_jvm_memory_used_bytes{area="heap"} / elasticsearch_jvm_memory_max_bytes{area="heap"}
> 0.9
for: 15m
labels:
severity: critical
- name: kubernetes-absent
rules:
- alert: AlertmanagerDown

View File

@ -1,19 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
namespace: monitoring
spec:
endpoints:
- interval: 30s
port: admin
scheme: http
jobLabel: k8s-app
namespaceSelector:
matchNames:
- kube-system
selector:
matchLabels:
k8s-app: traefik-ingress-lb

View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: Endpoints
metadata:
labels:
k8s-app: ups-exporter
name: ups-exporter
namespace: monitoring
subsets:
- addresses:
- ip: 192.168.1.62
ports:
- name: metrics
port: 9099
protocol: TCP

View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: ups-exporter
name: ups-exporter
namespace: monitoring
spec:
clusterIP: None
ports:
- name: metrics
port: 9099
targetPort: 9099
selector: null

View File

@ -1,16 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: ups-exporter
name: ups-exporter
namespace: monitoring
spec:
endpoints:
- interval: 30s
port: metrics
scheme: http
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: ups-exporter