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

[BUG] restart pod, configuration is not persistent #8732

Closed
fm2022aa opened this issue Dec 31, 2024 · 1 comment
Closed

[BUG] restart pod, configuration is not persistent #8732

fm2022aa opened this issue Dec 31, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@fm2022aa
Copy link

when I modify the postgres.conf, then restart, the conf is not persistent

image

why here has two same volume?

kubeblock: v0.8

here is my conf:

apiVersion: apps.kubeblocks.io/v1alpha1
kind: ClusterDefinition
metadata:
  name: cloudvector
  labels:
    {{- include "cloudvector.labels" . | nindent 4 }}
spec:
  connectionCredential:
    username: root
    password: "$(RANDOM_PASSWD)"
    endpoint: "$(SVC_FQDN):$(SVC_PORT_mysql)"
    host: "$(SVC_FQDN)"
    port: "$(SVC_PORT_mysql)"
  componentDefs:
    - name: cloudvector
      characterType: cloudvector
      workloadType: Stateful
      service:
        ports:
          - name: cloudvector
            port: 5432
            targetPort: cloudvector
      podSpec:
        containers:
          - name: cloudvector-container
            imagePullPolicy: IfNotPresent
            volumeMounts:
              - mountPath: /var/lib/postgresql
                name: data
            ports:
              - containerPort: 5432
                name: cloudvector
            env:
              - name: POSTGRES_PASSWORD
                valueFrom:
                  secretKeyRef:
                    name: $(CONN_CREDENTIAL_SECRET_NAME)
                    key: password
              - name: PGDATA
                value: /var/lib/postgresql/data
@fm2022aa fm2022aa added the kind/bug Something isn't working label Dec 31, 2024
@fm2022aa
Copy link
Author

fm2022aa commented Dec 31, 2024

I found my data is in emptydir not in pvc, can you tell me , how can I put data in the pvc instead of emptydir

@fm2022aa fm2022aa closed this as completed Jan 2, 2025
@github-actions github-actions bot added this to the Release 0.9.2 milestone Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants