Last active
November 29, 2019 01:05
-
-
Save TrongTan124/f24564c4c673ab72ec720e8148834e27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm repo add wso2 https://helm.wso2.com | |
helm repo update | |
git clone https://github.com/wso2/kubernetes-apim.git | |
export HELM_HOME=/root/kubernetes-apim/advanced | |
#export KUBERNETES_HOME=/root/kubernetes-apim/advanced | |
ll $HELM_HOME/am-pattern-1/confs | |
vim $HELM_HOME/am-pattern-1/values.yaml | |
helm install --dep-up --name wso2-pattern1 $HELM_HOME/mysql-am --namespace wso2 | |
helm install --dep-up --name wso2-pattern1 $HELM_HOME/am-pattern-1 --namespace wso2 | |
- Tạo một storageclass sử dụng NFS để lưu trữ dữ liệu cho pod prometheus. các dữ liệu này sẽ tồn tại bên ngoài container để đảm bảo dữ liệu ko bị mất. Yêu cầu thay đổi đúng tham số IP và thư mục lưu trữ dữ liệu | |
cat << EOF > storageclass-nfs-prometheus.yaml | |
replicaCount: 1 | |
nfs: | |
server: 172.16.68.60 | |
path: /var/docker/prometheus | |
mountOptions: | |
storageClass: | |
create: true | |
archiveOnDelete: false | |
name: nfs-prometheus | |
allowVolumeExpansion: true | |
EOF | |
- Sử dụng helm để tạo storage class: | |
helm install --name nfs-prometheus -f storageclass-nfs-prometheus.yaml stable/nfs-client-provisioner --namespace monitoring | |
- Check storage class vừa tạo: | |
kubectl get storageclass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment