Openstack over k8s: различия между версиями
Материал из noname.com.ua
Перейти к навигацииПерейти к поискуSirmax (обсуждение | вклад) |
Sirmax (обсуждение | вклад) |
||
Строка 8: | Строка 8: | ||
=Install helm= |
=Install helm= |
||
+ | |||
+ | * http://docs.ceph.com/docs/mimic/start/kube-helm/ |
||
+ | |||
brew install kubernetes-helm |
brew install kubernetes-helm |
||
Строка 46: | Строка 49: | ||
...Successfully got an update from the "stable" chart repository |
...Successfully got an update from the "stable" chart repository |
||
Update Complete. ⎈ Happy Helming!⎈ |
Update Complete. ⎈ Happy Helming!⎈ |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | <PRE> |
||
+ | helm serve & |
||
+ | [1] 35959 |
||
+ | 14:16:09-mmazur@Mac18:~/WORK_OTHER/Mirantis_test_task/ceph-helm$ Regenerating index. This may take a moment. |
||
+ | Now serving you on 127.0.0.1:8879 |
||
+ | |||
+ | </PRE> |
||
+ | |||
+ | <PRE> |
||
+ | helm repo add local http://localhost:8879/charts |
||
+ | "local" has been added to your repositories |
||
+ | </PRE> |
||
+ | |||
+ | |||
+ | <PRE> |
||
+ | make |
||
+ | |||
+ | ===== Processing [helm-toolkit] chart ===== |
||
+ | if [ -f helm-toolkit/Makefile ]; then make --directory=helm-toolkit; fi |
||
+ | find: secrets: No such file or directory |
||
+ | echo Generating /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/helm-toolkit/templates/_secrets.tpl |
||
+ | Generating /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/helm-toolkit/templates/_secrets.tpl |
||
+ | rm -f templates/_secrets.tpl |
||
+ | for i in ; do printf '{{ define "'$i'" }}' >> templates/_secrets.tpl; cat $i >> templates/_secrets.tpl; printf "{{ end }}\n" >> templates/_secrets.tpl; done |
||
+ | if [ -f helm-toolkit/requirements.yaml ]; then helm dependency update helm-toolkit; fi |
||
+ | Hang tight while we grab the latest from your chart repositories... |
||
+ | ...Successfully got an update from the "local" chart repository |
||
+ | ...Successfully got an update from the "stable" chart repository |
||
+ | Update Complete. ⎈Happy Helming!⎈ |
||
+ | Saving 0 charts |
||
+ | Deleting outdated charts |
||
+ | if [ -d helm-toolkit ]; then helm lint helm-toolkit; fi |
||
+ | ==> Linting helm-toolkit |
||
+ | [INFO] Chart.yaml: icon is recommended |
||
+ | |||
+ | 1 chart(s) linted, no failures |
||
+ | if [ -d helm-toolkit ]; then helm package helm-toolkit; fi |
||
+ | Successfully packaged chart and saved it to: /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/helm-toolkit-0.1.0.tgz |
||
+ | |||
+ | ===== Processing [ceph] chart ===== |
||
+ | if [ -f ceph/Makefile ]; then make --directory=ceph; fi |
||
+ | if [ -f ceph/requirements.yaml ]; then helm dependency update ceph; fi |
||
+ | Hang tight while we grab the latest from your chart repositories... |
||
+ | ...Successfully got an update from the "local" chart repository |
||
+ | ...Successfully got an update from the "stable" chart repository |
||
+ | Update Complete. ⎈Happy Helming!⎈ |
||
+ | Saving 1 charts |
||
+ | Downloading helm-toolkit from repo http://localhost:8879/charts |
||
+ | Deleting outdated charts |
||
+ | if [ -d ceph ]; then helm lint ceph; fi |
||
+ | ==> Linting ceph |
||
+ | [INFO] Chart.yaml: icon is recommended |
||
+ | |||
+ | 1 chart(s) linted, no failures |
||
+ | if [ -d ceph ]; then helm package ceph; fi |
||
+ | Successfully packaged chart and saved it to: /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/ceph-0.1.0.tgz |
||
</PRE> |
</PRE> |
||
Версия 14:19, 2 февраля 2019
1) Install openstack(ceph as storage) on top of K8s(All-in-one-installation) using openstack-helm project 2) change Keystone token expiration time afterwards to 24 hours 3) deploy 3 VMs connected to each other using heat
install minikube
Install helm
brew install kubernetes-helm
helm init $HELM_HOME has been configured at /Users/mmazur/.helm. Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster. Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy. To prevent this, run `helm init` with the --tiller-tls-verify flag. For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation Happy Helming!
kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE coredns-86c58d9df4-fc47s 1/1 Running 0 2d19h coredns-86c58d9df4-jpl6m 1/1 Running 0 2d19h etcd-minikube 1/1 Running 0 2d19h kube-addon-manager-minikube 1/1 Running 0 2d19h kube-apiserver-minikube 1/1 Running 0 2d19h kube-controller-manager-minikube 1/1 Running 0 2d19h kube-proxy-9tg5l 1/1 Running 0 2d19h kube-scheduler-minikube 1/1 Running 0 2d19h storage-provisioner 1/1 Running 0 2d19h tiller-deploy-69ffbf64bc-vspfs 1/1 Running 0 108s
helm list
helm repo update Hang tight while we grab the latest from your chart repositories... ...Skip local chart repository ...Successfully got an update from the "stable" chart repository Update Complete. ⎈ Happy Helming!⎈
helm serve & [1] 35959 14:16:09-mmazur@Mac18:~/WORK_OTHER/Mirantis_test_task/ceph-helm$ Regenerating index. This may take a moment. Now serving you on 127.0.0.1:8879
helm repo add local http://localhost:8879/charts "local" has been added to your repositories
make ===== Processing [helm-toolkit] chart ===== if [ -f helm-toolkit/Makefile ]; then make --directory=helm-toolkit; fi find: secrets: No such file or directory echo Generating /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/helm-toolkit/templates/_secrets.tpl Generating /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/helm-toolkit/templates/_secrets.tpl rm -f templates/_secrets.tpl for i in ; do printf '{{ define "'$i'" }}' >> templates/_secrets.tpl; cat $i >> templates/_secrets.tpl; printf "{{ end }}\n" >> templates/_secrets.tpl; done if [ -f helm-toolkit/requirements.yaml ]; then helm dependency update helm-toolkit; fi Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "local" chart repository ...Successfully got an update from the "stable" chart repository Update Complete. ⎈Happy Helming!⎈ Saving 0 charts Deleting outdated charts if [ -d helm-toolkit ]; then helm lint helm-toolkit; fi ==> Linting helm-toolkit [INFO] Chart.yaml: icon is recommended 1 chart(s) linted, no failures if [ -d helm-toolkit ]; then helm package helm-toolkit; fi Successfully packaged chart and saved it to: /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/helm-toolkit-0.1.0.tgz ===== Processing [ceph] chart ===== if [ -f ceph/Makefile ]; then make --directory=ceph; fi if [ -f ceph/requirements.yaml ]; then helm dependency update ceph; fi Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "local" chart repository ...Successfully got an update from the "stable" chart repository Update Complete. ⎈Happy Helming!⎈ Saving 1 charts Downloading helm-toolkit from repo http://localhost:8879/charts Deleting outdated charts if [ -d ceph ]; then helm lint ceph; fi ==> Linting ceph [INFO] Chart.yaml: icon is recommended 1 chart(s) linted, no failures if [ -d ceph ]; then helm package ceph; fi Successfully packaged chart and saved it to: /Users/mmazur/WORK_OTHER/Mirantis_test_task/ceph-helm/ceph/ceph-0.1.0.tgz