diff --git a/README.md b/README.md index 33f3b12..818c8f1 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ cd /bitnami/mysql/ CREATE DATABASE nacos DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; mysql -uroot -pgkxl650 zd_rescue < ./zd_rescue.sql + + +nohup mysql -uroot -pgkxl650 zd_rescue < ./zd_rescue.sql > ./mysql.log 2>&1 & ``` ## rabbitmq @@ -152,4 +155,16 @@ cd superset && helm dependency update && cd .. helm upgrade -i superset superset/ -n harbor +``` + + + +## fastdfs +https://github.com/ygqygq2/charts/tree/master/ygqygq2/fastdfs-nginx + +``` +cd fastdfs && helm dependency update && cd .. + +helm upgrade -i fastdfs fastdfs/ -n common-support --values local-values/fastdfs/values.yaml + ``` \ No newline at end of file diff --git a/local-values/fastdfs/values.yaml b/local-values/fastdfs/values.yaml new file mode 100644 index 0000000..77a2ab6 --- /dev/null +++ b/local-values/fastdfs/values.yaml @@ -0,0 +1,148 @@ +## @section Global parameters +## Global Docker image parameters +## Please, note that this will override the image parameters, including dependencies, configured to use the global value +## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass +## + +## @param global.imageRegistry Global Docker image registry +## @param global.imagePullSecrets Global Docker registry secret names as an array +## @param global.storageClass Global StorageClass for Persistent Volume(s) +## @param global.redis.password Global Redis™ password (overrides `auth.password`) +## +global: + imageRegistry: "" + ## E.g. + ## imagePullSecrets: + ## - myRegistryKeySecretName + ## + imagePullSecrets: [] +# - myRegistryKeySecretName + +## @section Common parameters + +## @param nameOverride String to partially override nginx.fullname template (will maintain the release name) +## +nameOverride: "" +## @param fullnameOverride String to fully override nginx.fullname template +## +fullnameOverride: "" +## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set) +## +kubeVersion: "" +## @param clusterDomain Kubernetes Cluster Domain +## +clusterDomain: cluster.local +## @param extraDeploy Extra objects to deploy (value evaluated as a template) +## +extraDeploy: [] +## @param commonLabels Add labels to all the deployed resources +## +commonLabels: {} +## @param commonAnnotations Add annotations to all the deployed resources +## +commonAnnotations: {} + +# Default values for yapi. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + + +## replicas number and pvc size +fastdfs: + storage: + - name: group1 + replica: 1 + size: 20Gi + - name: group2 + replica: 0 + size: 2Gi + tracker: + replica: 1 + size: 5Gi + +service: + type: ClusterIP + annotations: {} + +image: + repository: ygqygq2/fastdfs-nginx + tag: V6.08-tengine + pullPolicy: IfNotPresent + +## Headless service. +## +headless: + annotations: {} + +trackerPorts: + tracker: + containerPort: 22122 # Port number for fastdfs container tracker port. + protocol: TCP # Protocol + trackernginx: + containerPort: 80 # Port number for fastdfs container nginx port. + protocol: TCP # Protocol + +storagePorts: + storage: + containerPort: 23000 # Port number for fastdfs container storage port. + protocol: TCP # Protocol + storagenginx: + containerPort: 8080 # Port number for fastdfs container nginx port. + protocol: TCP # Protocol + +ingress: + enabled: true + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + ingressClassName: "" + path: / + pathType: ImplementationSpecific + hosts: + - file.sino-assist.com + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +## Configure resource requests and limits +### ref: http://kubernetes.io/docs/user-guide/compute-resources/ +### +resources: + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + tracker: + requests: + cpu: 100m + memory: 128Mi + storage: + requests: + cpu: 100m + memory: 128Mi + +## Node labels and tolerations for pod assignment +### ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector +### ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature +nodeSelector: {} +tolerations: [] +affinity: {} + +## Enable persistence using Persistent Volume Claims +## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ +## +persistentVolume: + enabled: true + ## If defined, storageClassName: + ## 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, azure-disk on + ## Azure, standard on GKE, AWS & OpenStack) + ## + storageClass: "fastdfs-data" + accessMode: ReadWriteMany + annotations: {}