Skip to content

Commit

Permalink
chore: remove custom storage class, use default sc; (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Oct 13, 2023
1 parent 364c7a6 commit 0b612c7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion build/charts/laf-server/templates/cert-issuer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
kind: Issuer
metadata:
name: laf-issuer
spec:
Expand Down
2 changes: 1 addition & 1 deletion build/charts/minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ persistence:
##
## Storage class of PV to bind. By default it looks for standard storage class.
## If the PV uses a different storage class, specify that here.
storageClass: local-hostpath
storageClass: ""
VolumeName: ""
accessMode: ReadWriteOnce
size: 20Gi
Expand Down
18 changes: 0 additions & 18 deletions build/charts/mongodb/templates/storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,10 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Release.Name }}-db-pvc
annotations:
volume.beta.kubernetes.io/storage-class: {{ .Values.storage.class}}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.storage.size }}

---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ .Values.storage.class}}
annotations:
# storageclass.kubernetes.io/is-default-class: "true"
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: hostpath
- name: BasePath
value: /mongodb
provisioner: openebs.io/local
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer
3 changes: 1 addition & 2 deletions build/charts/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ db:

storage:
size: 10Gi
class: database-mongodb

# k8s resource config
replicaCount: 1
Expand All @@ -38,7 +37,7 @@ serviceAccount:
podAnnotations: {}

podSecurityContext:
{fsGroup: 999}
{ fsGroup: 999 }
# fsGroup: 2000

securityContext:
Expand Down
3 changes: 0 additions & 3 deletions deploy/install-on-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ NODENAME=$(kubectl get nodes -ojsonpath='{.items[0].metadata.name}')
kubectl taint node $NODENAME node-role.kubernetes.io/master- || true
kubectl taint node $NODENAME node-role.kubernetes.io/control-plane- || true

# label master node as a app node
kubectl label node $NODENAME laf.dev/node.type=runtime

# install required components
sealos run labring/openebs:v1.9.0
sealos run labring/cert-manager:v1.8.0
Expand Down
2 changes: 1 addition & 1 deletion server/src/gateway/ingress/bucket-ingress.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class BucketGatewayService {
// k8s nginx ingress annotations
// websocket is enabled by default in k8s nginx ingress
'nginx.ingress.kubernetes.io/enable-cors': 'true',
'nginx.ingress.kubernetes.io/cors-allow-credentials': 'true',
'nginx.ingress.kubernetes.io/cors-allow-credentials': 'false',
'nginx.ingress.kubernetes.io/cors-allow-methods': '*',
'nginx.ingress.kubernetes.io/cors-allow-headers':
'DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,x-laf-develop-token,x-laf-func-data,x-amz-content-sha256,x-amz-security-token,x-amz-user-agent,x-amz-date',
Expand Down

0 comments on commit 0b612c7

Please sign in to comment.