-
Notifications
You must be signed in to change notification settings - Fork 93
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
"/var/lib/vector/": Read-only file system (os error 30) #226
Comments
Hey @kbespalov can you share the configuration you're using for Vector? |
Chart Version: 0.13.1 here is chart values configuration, nothing exceptional - sinks/sources/trasforms, almost default. affinity: {}
args:
- --config-dir
- /etc/vector/
autoscaling:
customMetric: {}
enabled: false
maxReplicas: 10
minReplicas: 1
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: null
command: []
commonLabels: {}
containerPorts: []
customConfig:
sinks:
cloudwatch:
# ... omitted
type: aws_cloudwatch_logs
sources:
billing_golang_logs:
# ... omitted
type: kubernetes_logs
billing_python_logs:
# ... omitted
type: kubernetes_logs
transforms:
formatted_golang_logs:
# ... omitted
formatted_python_logs:
# ... omitted
type: remap
merged_python_logs:
# ... omitted
type: reduce
dataDir: ""
dnsConfig: {}
dnsPolicy: ClusterFirst
env: []
existingConfigMaps: []
extraVolumeMounts: []
extraVolumes: []
fullnameOverride: ""
haproxy:
affinity: {}
autoscaling:
customMetric: {}
enabled: false
maxReplicas: 10
minReplicas: 1
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: null
containerPorts: []
customConfig: ""
enabled: false
existingConfigMap: ""
extraVolumeMounts: []
extraVolumes: []
image:
pullPolicy: IfNotPresent
pullSecrets: []
repository: haproxytech/haproxy-alpine
tag: 2.4.17
initContainers: []
livenessProbe:
tcpSocket:
port: 1024
nodeSelector: {}
podAnnotations: {}
podLabels: {}
podPriorityClassName: ""
podSecurityContext: {}
readinessProbe:
tcpSocket:
port: 1024
replicas: 1
resources: {}
rollWorkload: true
securityContext: {}
service:
annotations: {}
ports: []
topologyKeys: []
type: ClusterIP
serviceAccount:
annotations: {}
automountToken: true
create: true
name: null
strategy: {}
terminationGracePeriodSeconds: 60
tolerations: []
image:
pullPolicy: IfNotPresent
pullSecrets: []
repository: timberio/vector
sha: ""
tag: ""
ingress:
annotations: {}
className: ""
enabled: false
hosts: []
tls: []
initContainers: []
livenessProbe: {}
nameOverride: ""
nodeSelector: {}
persistence:
accessModes:
- ReadWriteOnce
enabled: false
existingClaim: ""
finalizers:
- kubernetes.io/pvc-protection
hostPath:
path: /var/lib/vector
selectors: {}
size: 10Gi
podAnnotations: {}
podDisruptionBudget:
enabled: false
maxUnavailable: null
minAvailable: 1
podLabels: {}
podManagementPolicy: OrderedReady
podMonitor:
additionalLabels: {}
enabled: false
honorLabels: false
honorTimestamps: true
jobLabel: app.kubernetes.io/name
metricRelabelings: []
path: /metrics
port: prom-exporter
relabelings: []
podPriorityClassName: ""
podSecurityContext: {}
psp:
create: false
enabled: true
rbac:
create: true
readinessProbe: {}
replicas: 1
resources: {}
role: Agent
rollWorkload: true
secrets:
generic: {}
securityContext: {}
service:
annotations: {}
enabled: false
ports: []
topologyKeys: []
type: ClusterIP
serviceAccount:
annotations:
eks.amazonaws.com/role-arn: .....
automountToken: true
create: true
name: vector-logging-agent
terminationGracePeriodSeconds: 60
tolerations: []
updateStrategy: {} Maybe something is wrong with the pod security policy? |
Interesting - I thought I had included some logic around this - but in your I think we can improve this by being more specific in what we mount from |
Adding this parameter explicitly to the settings solved my problem. Thank you! # values yaml
customConfig:
data_dir: "/vector-data-dir" |
I'm going to keep this open as I think we can improve our defaults to be more specific and cause less issues 😄 |
Will just uncommenting |
I'd like to tighten up the mount config so we don't mount the entirety of |
This is still an issue :( |
Vector agent cannot start due to Read-only file system error
So, vector-agent is trying to create directories to store checkpoints json files, but there is no way to do that because
/var/lib
volume is mounted as RO:The text was updated successfully, but these errors were encountered: