Unknown model· unknown
from NVIDIA HelpSteer3 Preference
can you write a helm chart for deploying a high availability nextcloud instance?
- User
can you write a helm chart for deploying a high availability nextcloud instance?
- Assistant
Here is a sample Helm chart for deploying a high availability Nextcloud instance:
codeapiVersion: v1 kind: Service metadata: name: nextcloud labels: app: nextcloud spec: type: ClusterIP ports: - port: 80 targetPort: http protocol: TCP name: http selector: app: nextcloud --- apiVersion: apps/v1 kind: StatefulSet metadata: name: nextcloud spec: replicas: 2 selector: matchLabels: app: nextcloud template: metadata: labels: app: nextcloud spec: containers: - name: nextcloud image: nextcloud:latest ports: - name: http containerPort: 80 volumeMounts: - name: nextcloud-data mountPath: /var/www/html env: - name: NEXTCLOUD_ADMIN_USER value: admin - name: NEXTCLOUD_ADMIN_PASSWORD value: password - name: NEXTCLOUD_TRUSTED_DOMAINS value: nextcloud.example.com volumes: - name: nextcloud-data persistentVolumeClaim: claimName: nextcloud-pvc --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: nextcloud-pvc spec: accessModes: - ReadWriteOnce resources: requests: storage: 10GiThis chart creates a StatefulSet with two replicas, which ensures high availability for the Nextcloud instance. It also creates a PersistentVolumeClaim for storing the Nextcloud data. The chart uses the official Nextcloud Docker image and sets the necessary environment variables for the admin user, password, and trusted domains.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.