From 8b4b9b1a57b2450098d8facb35dff1872d1254fe Mon Sep 17 00:00:00 2001 From: Chen Date: Sun, 26 Apr 2020 19:40:59 +0800 Subject: [PATCH] update helm deploy nacos v1.2.1 --- helm/CHANGELOG.md | 17 ++ helm/Chart.yaml | 13 +- helm/README.md | 31 +++- helm/charts/mysql-1.6.3.tgz | Bin 0 -> 11125 bytes helm/charts/mysql/.helmignore | 22 --- helm/charts/mysql/Chart.yaml | 5 - .../mysql/templates/mysql-deployment.yaml | 71 -------- helm/charts/mysql/templates/mysql-pvc.yaml | 10 -- .../charts/mysql/templates/mysql-service.yaml | 16 -- helm/charts/mysql/templates/storageclass.yaml | 11 -- helm/charts/mysql/values.yaml | 47 ------ helm/requirements.lock | 6 + helm/requirements.yaml | 6 + helm/templates/NOTES.txt | 2 +- .../{deployment.yaml => StatefulSet.yaml} | 6 +- helm/templates/configmap.yaml | 6 +- helm/templates/ingress.yaml | 7 +- helm/templates/storageclass.yaml | 10 -- helm/values.yaml | 156 +++++++++--------- 19 files changed, 155 insertions(+), 287 deletions(-) create mode 100644 helm/CHANGELOG.md create mode 100644 helm/charts/mysql-1.6.3.tgz delete mode 100644 helm/charts/mysql/.helmignore delete mode 100644 helm/charts/mysql/Chart.yaml delete mode 100644 helm/charts/mysql/templates/mysql-deployment.yaml delete mode 100644 helm/charts/mysql/templates/mysql-pvc.yaml delete mode 100644 helm/charts/mysql/templates/mysql-service.yaml delete mode 100644 helm/charts/mysql/templates/storageclass.yaml delete mode 100644 helm/charts/mysql/values.yaml create mode 100644 helm/requirements.lock create mode 100644 helm/requirements.yaml rename helm/templates/{deployment.yaml => StatefulSet.yaml} (96%) delete mode 100644 helm/templates/storageclass.yaml diff --git a/helm/CHANGELOG.md b/helm/CHANGELOG.md new file mode 100644 index 0000000..9a06297 --- /dev/null +++ b/helm/CHANGELOG.md @@ -0,0 +1,17 @@ +**Note:** This file is automatically generated. Please see the [developer +documentation](doc/development/changelog.md) for instructions on adding your own +entry. + +## 0.1.0 (2020-02-31) + +### Other (1 change) + +- Update helm deploy nacos + + +## 0.1.1 (2020-04-26) + +### Other (1 change) + +- Update nacos mysql + diff --git a/helm/Chart.yaml b/helm/Chart.yaml index cc01793..9b9b913 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,7 +1,12 @@ apiVersion: v1 appVersion: "1.0" -description: A Helm chart for Kubernetes -name: nacos -version: 0.1.0 +description: use helm to deloy nacos cluster. +home: https://nacos.io/en-us/ +icon: https://nacos.io/img/nacos.png maintainers: -- name: arrowfeng +- email: huangmnlove@163.com + name: arrowfeng +name: nacos +sources: +- https://github.com/nacos-group/nacos-k8s +version: 0.1.1 diff --git a/helm/README.md b/helm/README.md index 27ec509..19c8a09 100644 --- a/helm/README.md +++ b/helm/README.md @@ -9,19 +9,44 @@ This project is based on the Helm Chart packaged by [nacos-k8s](https://github.c ## Prerequisites - Kubernetes 1.10+ - - Helm v3 + - Helm v2+ - PV provisioner support in the underlying infrastructure ## Installing the Chart +To install nfs-client-provisioner,Must have NFS server first: + +```shell +$ helm repo add stable https://kubernetes-charts.storage.googleapis.com +$ helm repo update +$ helm install --namespace kube-system \ +--set nfs.server=192.168.1.2 --set nfs.path=/k8s-data --set storageClass.reclaimPolicy=Retain \ +--set storageClass.defaultClass=true,storageClass.name=nfs \ +--name nfs-client-provisioner stable/nfs-client-provisioner --version=1.2.8 +``` + + + To install the chart with `release name`: ```shell -$ helm install `release name` ./nacos +$ helm repo update +$ helm dependency update +$ helm install --namespace `name` --set global.mode=cluster --name `release name` ./nacos ``` The command deploys Nacos on the Kubernetes cluster in the default configuration. It will run without a mysql chart and persistent volume. The [configuration](#configuration) section lists the parameters that can be configured during installation. +Update nacos to the latest version + +```shell +$ helm upgrade `release name` \ +--set mysql.image=nacos/nacos-mysq,mysql.imageTag=latest \ +--set image.repository=nacos/nacos-server,image.tag=latest \ +--set plugins.repository=nacos/nacos-peer-finder-plugin,plugins.tag=latest \ +./nacos +``` + ### Service & Configuration Management #### Service registration @@ -145,5 +170,5 @@ $ kubectl scale sts `release name`-nacos --replicas=3 ![img](../images/cluster2.png) * Use kubectl exec to get the cluster config of the Pods in the nacos StatefulSet after scale StatefulSets - + ![img](../images/cluster3.png) diff --git a/helm/charts/mysql-1.6.3.tgz b/helm/charts/mysql-1.6.3.tgz new file mode 100644 index 0000000000000000000000000000000000000000..935f71b02d5d4c2dd40363fd34b64805334a5104 GIT binary patch literal 11125 zcmV-*D~i+~iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PMYOciXm-IKFR}pJI-jUE8@PCE0P(>i)Cms*aNSG_k#w(r#~V zjs=mBguh9G0YEuwobUcSc;GYjWZ6l(YraS<5*T2BnZaN%GYIDVlixg#s zu3ce{^XO(6HFYcvTYa+Pk zL_&c`h?y#d14R4|Q0In-=|6ZxnPA96Og3o&gh=+5`Zz%BI_6o08JYN)6U6^9p>*Qo zLizNgi!J>|cSaAFYB#}gLc}y4DFmHjj?8dyqW?{c+=Y1u@saJG}P;c{y9LC4m7khX;>B)3<*4$cPs!gk8lSrvCA+L z*s?}3pO5Hg`6+>9UNvNC1*q*D{^%SvEK6W6UNaQn8_KR_6&y-Y80SEEUM%?* z`OOg$JcHD7o;j_CC6Vn%*d^mRM2K@KAz(}yFiM4#WlUnWvjea27{$Km07Ici18BEE zG9q#XX21m_;lwh-c}c0bFt9oxdn!LlASVh{K&jlxTF_PBbIdv$HkUS~n&|pIy@5DH zv6$je5ElvT0dif;`2obCl$1CWQc~+7%eAiR_JT;vbKRH2S=;wq#aHH4r!bx<)U$9A z`~C&>i93hAOZ+J&414>s;HlW+v7uCf zCO|ms`bduMZh>Mu&781w2$eFCH|03nlbCq8sX*}NP8@ki&Wx>Jq!gTWw*#l+Gb%0^ z<~S63cs-BE)l4pDh)rTSmK?+s2|x@h64H3c&c2)X|NAYt)T}9v1n`&S zj4%W!j1>Sa$2=gRnta(&9w9m8C3#vyo-Pet90~P@K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dh(^tbxaySzNVyn20pdG+e_*VF##`PtP^ zzpL-ET=)Ip{OaVg*B$h(-uHW#@?G!j&FNY1s{j6{{@`@*esFqzmY{N_C%7IXwSe!K zJZoj@-=0{XI(&K{|NZ2vbwmB-O#Y}PSPjp{p%NxNz-x4n@Z=5(?(slco5p!-v|--FZFaCSa`-v6BT2Ys{rzv{j2zJEJ_ zlb^en-IGD@68gOX#A5tI_UZiXTM0+LywVBB{41CIU0uc^1^#C3>N;CBoDgrn|F)2Y z&!np3sc6cQ>zkSUfJ2wfBdI{-4i7T&_VCOxa)1VsFq;gI0~9uoofl0UHq+{MuDUZ7 zfxoZC&fsmoSuug9TKZ_NbLgo6WYuw^b`La&e8Q)?1lJc7n#^0DVj{`*BxmF8#$u|> z4~m)&j4@u>P&4aqz6S?MMy<41W@XjE^@S5ixslRpgv5kKnYlnz#=4Z;O^&gPxFkyJ zDZEn|2@CdVbCbUwEV%($UW~?q6HlpZs<0AS>p-(i6& zpr_uN5{~2K%l6J*)t8hFJP6=xJg{}Ib${voz5;e_>2!N3bpff>XSo9F z=W~jZBy&t|xOMPwmOGn+$lIw$w68WYs zV<}fF-Q;5Go3~p2r5Cv@sB1o#s%n{-d{hYLNpPt9J3P<_@wqMxwR{~Gp%3Bd(;(*J z>C@Et&k(7Uy6Tb%O`C+LLuO>Jl_(){e)S#%6=q2@K}CxN*=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} apiVersion: extensions/v1beta1 +{{- end }} kind: Ingress metadata: name: {{ $fullName }} @@ -30,7 +35,7 @@ spec: - path: {{ . }} backend: serviceName: nacos-cs - servicePort: http + servicePort: {{ $svcPort }} {{- end }} {{- end }} {{- end }} diff --git a/helm/templates/storageclass.yaml b/helm/templates/storageclass.yaml deleted file mode 100644 index c41b53a..0000000 --- a/helm/templates/storageclass.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{- if and .Values.persistence.enabled .Values.persistence.storageClass -}} -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: {{ .Values.persistence.storageClassName }} -provisioner: -{{ toYaml .Values.global.storageClass.provisioner | indent 2 }} -parameters: -{{ toYaml .Values.persistence.classParameters | indent 2 }} -{{- end }} diff --git a/helm/values.yaml b/helm/values.yaml index 1dd6fd3..e7809cd 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -3,79 +3,80 @@ # Declare variables to be passed into your templates. global: - mode: quickstart + #mode: quickstart #mode: standalone - #mode: cluster - storageClass: - provisioner: - #nfs - # provisioner: fuseim.pri/ifs - ###ceph - # provisioner: ceph.com/rbd + mode: cluster ############################mysql########################### mysql: - annotations: {} - resources: {} - nodeSelector: {} - affinity: {} - tolerations: {} - service: - port: 3306 - rootPassword: root - database: nacos_devtest - user: nacos - password: nacos - image: - pullPolicy: IfNotPresent - repository: nacos/nacos-mysql - tag: 5.7 - classParameters: {} + image: "nacos/nacos-mysq" + imageTag: "5.7" + + strategy: + type: Recreate + + busybox: + image: "busybox" + tag: "1.29.3" + + ## Specify password for root user + ## + ## Default: random 10 character string + mysqlRootPassword: root + + ## Create a database user + ## + mysqlUser: nacos + ## Default: random 10 character string + mysqlPassword: nacos + + ## Allow unauthenticated access, uncomment to enable + ## + # mysqlAllowEmptyPassword: true + + ## Create a database + mysqlDatabase: nacos_devtest + + # Optionally specify an array of imagePullSecrets. + # Secrets must be manually created in the namespace. + # ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + # imagePullSecrets: + # - name: myRegistryKeySecretName + + ## Persist data to a persistent volume persistence: + enabled: true + ## database data Persistent Volume Storage Class + ## 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, standard on + ## GKE, AWS & OpenStack) + ## + # storageClass: "-" + storageClass: "nfs" + accessMode: ReadWriteOnce + size: 8Gi + annotations: {} + + metrics: enabled: false - existingClaim: mysql-data - #existingClaim: - claim: - name: mysql-data - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 5G - storageClassName: sc-mysql - - - - -######nfs -# archiveOnDelete: "false" - -######ceph -# monitors: 10.144.131.48:6789 -# adminId: admin -# adminSecretName: ceph-secret-admin -# adminSecretNamespace: nacos -# pool: nacos-mysql-data -# userId: mysql -# userSecretName: ceph-secret-mysql -# userSecretNamespace: nacos -# fsType: ext4 -# imageFormat: "2" -# imageFeatures: "layering" - - - - - -############################mysql########################### - + image: prom/mysqld-exporter + imageTag: v0.10.0 + imagePullPolicy: IfNotPresent + resources: {} ############################nacos########################### + replicaCount: 1 image: repository: nacos/nacos-server - tag: latest + tag: 1.2.1 + pullPolicy: IfNotPresent + +plugins: + repository: nacos/nacos-peer-finder-plugin + tag: "1.0" pullPolicy: IfNotPresent health: @@ -85,30 +86,29 @@ env: domainName: cluster.local preferhostmode: hostname serverPort: 8848 -# dbHost: 127.0.0.1 + dbHost: nacos-mysql persistence: - enabled: false - storageClassName: sc-nacos + enabled: true classParameters: {} data: accessModes: - ReadWriteOnce - storageClassName: manual + storageClassName: nfs resources: requests: storage: 5Gi plugin: accessModes: - ReadWriteOnce - storageClassName: manual + storageClassName: nfs resources: requests: storage: 5Gi log: accessModes: - ReadWriteOnce - storageClassName: manual + storageClassName: nfs resources: requests: storage: 5Gi @@ -119,22 +119,22 @@ service: port: 8848 nodePort: 30000 - ingress: - enabled: false + enabled: true annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" hosts: - - host: nacos.example.com - paths: [] + - host: chart-example.local + paths: + - /nacos tls: [] # - secretName: chart-example-tls # hosts: # - chart-example.local -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 @@ -142,16 +142,12 @@ resources: # limits: # cpu: 100m # memory: 128Mi - requests: - cpu: 500m - memory: 2Gi -annotations: {} + # requests: + # cpu: 100m + # memory: 128Mi nodeSelector: {} tolerations: [] affinity: {} - - -