Thank you for reading this post, don't forget to subscribe!
рассмотрим установку tomcat от bitnami
[root@kub-master-1 ~]# kubectl create ns tomcat
[root@kub-master-1 ~]# helm repo add bitnami https://charts.bitnami.com/bitnami
[root@kub-master-1 ~]# helm pull bitnami/tomcat
[root@kub-master-1 ~]# tar xvfz tomcat-8.2.5.tgz
[root@kub-master-1 ~]# vim tomcat/values.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
clusterDomain: test.local tomcatUsername: user tomcatPassword: user123 podAntiAffinityPreset: soft persistence: enabled: true storageClass: "managed-nfs-storage" annotations: accessModes: - ReadWriteOnce size: 8Gi ingress: enabled: true hostname: tomcat.test.local |
готово, можно запускать:
[root@kub-master-1 ~]# helm upgrade --install -name tomcat tomcat/ -f tomcat/values.yaml --namespace tomcat