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

Revert PV and statefulset related changes #390

Merged
merged 17 commits into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/helm/sumologic/conf/buffer.output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ compress gzip
flush_interval "#{ENV['FLUSH_INTERVAL']}"
flush_thread_count "#{ENV['NUM_THREADS']}"
chunk_limit_size "#{ENV['CHUNK_LIMIT_SIZE']}"
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
queued_chunks_limit_size "#{ENV['QUEUE_CHUNK_LIMIT_SIZE']}"
overflow_action drop_oldest_chunk
3 changes: 1 addition & 2 deletions deploy/helm/sumologic/conf/events/events.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,11 @@
verify_ssl "#{ENV['VERIFY_SSL']}"
proxy_uri "#{ENV['PROXY_URI']}"
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/events
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand Down
3 changes: 1 addition & 2 deletions deploy/helm/sumologic/conf/logs/logs.source.containers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@
@id sumologic.endpoint.logs
@include logs.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/logs.containers
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand Down
6 changes: 2 additions & 4 deletions deploy/helm/sumologic/conf/logs/logs.source.systemd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
@id sumologic.endpoint.logs.kubelet
@include logs.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/logs.kubelet
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand Down Expand Up @@ -54,12 +53,11 @@
@id sumologic.endpoint.logs.systemd
@include logs.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/logs.systemd
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand Down
24 changes: 8 additions & 16 deletions deploy/helm/sumologic/conf/metrics/metrics.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_APISERVER']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.apiserver
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -43,12 +42,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBELET']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.kubelet
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -59,12 +57,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBELET']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.container
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -75,12 +72,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBE_CONTROLLER_MANAGER']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.controller
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -91,12 +87,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBE_SCHEDULER']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.scheduler
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -107,12 +102,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBE_STATE']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.state
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -123,12 +117,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_NODE_EXPORTER']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.node
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand All @@ -139,12 +132,11 @@
endpoint "#{ENV['SUMO_ENDPOINT_METRICS']}"
@include metrics.output.conf
<buffer>
{{- if or .Values.sumologic.fluentd.persistence.enabled (eq .Values.sumologic.fluentd.buffer "file") }}
{{- if eq .Values.sumologic.fluentd.buffer "file" }}
@type file
path /fluentd/buffer/metrics.all
{{- else }}
@type memory
total_limit_size "#{ENV['TOTAL_LIMIT_SIZE']}"
{{- end }}
@include buffer.output.conf
</buffer>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: {{ template "sumologic.fullname" . }}
labels:
Expand All @@ -16,7 +16,6 @@ spec:
app: {{ template "sumologic.labels.app" . }}
{{- include "sumologic.labels.common" . | nindent 8 }}
spec:
podManagementPolicy: "Parallel"
serviceAccountName: {{ template "sumologic.fullname" . }}
{{- if .Values.deployment.nodeSelector }}
nodeSelector:
Expand All @@ -34,8 +33,6 @@ spec:
- name: config-volume
configMap:
name: {{ template "sumologic.fullname" . }}
securityContext:
fsGroup: {{ .Values.sumologic.fluentd.securityContext.fsGroup }}
containers:
- name: fluentd
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down Expand Up @@ -67,10 +64,6 @@ spec:
mountPath: /fluentd/etc/
- name: pos-files
mountPath: /mnt/pos/
{{- if .Values.sumologic.fluentd.persistence.enabled }}
- name: buffer
mountPath: "/fluentd/buffer"
{{- end}}
env:
- name: SUMO_ENDPOINT_METRICS
valueFrom:
Expand Down Expand Up @@ -163,15 +156,4 @@ spec:
- name: EXCLUDE_HOST_REGEX
value: {{ .Values.sumologic.excludeHostRegex | quote }}
- name: EXCLUDE_POD_REGEX
value: {{ .Values.sumologic.excludePodRegex | quote }}
{{- if .Values.sumologic.fluentd.persistence.enabled }}
volumeClaimTemplates:
- metadata:
name: buffer
spec:
accessModes: [{{ .Values.sumologic.fluentd.persistence.accessMode }}]
storageClassName: {{ .Values.sumologic.fluentd.persistence.storageClass }}
resources:
requests:
storage: {{ .Values.sumologic.fluentd.persistence.size }}
{{- end }}
value: {{ .Values.sumologic.excludePodRegex | quote }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if eq .Values.sumologic.eventCollectionEnabled true }}
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: {{ printf "%s-events" (include "sumologic.fullname" .) }}
labels:
Expand All @@ -16,7 +16,6 @@ spec:
app: {{ printf "%s-events" (include "sumologic.labels.app" .) }}
{{- include "sumologic.labels.common" . | nindent 8 }}
spec:
podManagementPolicy: "Parallel"
serviceAccountName: {{ template "sumologic.fullname" . }}
{{- if .Values.eventsDeployment.nodeSelector }}
nodeSelector:
Expand All @@ -34,8 +33,6 @@ spec:
- name: config-volume
configMap:
name: {{ printf "%s-events" (include "sumologic.fullname" .) }}
securityContext:
fsGroup: {{ .Values.sumologic.fluentd.securityContext.fsGroup }}
containers:
- name: fluentd-events
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand All @@ -47,10 +44,6 @@ spec:
mountPath: /fluentd/etc/
- name: pos-files
mountPath: /mnt/pos/
{{- if .Values.sumologic.fluentd.persistence.enabled }}
- name: buffer
mountPath: "/fluentd/buffer"
{{- end}}
livenessProbe:
httpGet:
path: /fluentd.pod.healthcheck?json=%7B%22log%22%3A+%22health+check%22%7D
Expand Down Expand Up @@ -82,15 +75,4 @@ spec:
value: {{ .Values.sumologic.queueChunkLimitSize | quote }}
- name: TOTAL_LIMIT_SIZE
value: {{ .Values.sumologic.totalLimitSize | quote }}
{{- if .Values.sumologic.fluentd.persistence.enabled }}
volumeClaimTemplates:
- metadata:
name: buffer
spec:
accessModes: [{{ .Values.sumologic.fluentd.persistence.accessMode }}]
storageClassName: {{ .Values.sumologic.fluentd.persistence.storageClass }}
resources:
requests:
storage: {{ .Values.sumologic.fluentd.persistence.size }}
{{- end }}
{{- end }}
{{- end }}
19 changes: 0 additions & 19 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,25 +179,6 @@ sumologic:
maxReplicas: 10
targetCPUUtilizationPercentage: 50

securityContext:
## The group ID of all processes in the statefulset containers. By default this needs to be fluent(999).
fsGroup: 999

## Persist data to a persistent volume; When enabled, fluentd uses the file buffer instead of memory buffer.
persistence:
enabled: false

## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, Azure & OpenStack)
##
# storageClass: "-"
# annotations: {}
accessMode: ReadWriteOnce
size: 10Gi

k8sMetadataFilter:
## Option to control the enabling of metadata filter plugin watch.
## ref: https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter#configuration
Expand Down
Loading