mirror of https://github.com/easzlab/kubeasz.git
minor fix
parent
18133ee301
commit
94b412b8b1
|
@ -72,6 +72,9 @@ Kibana is running at https://192.168.1.10:8443/api/v1/namespaces/kube-system/ser
|
||||||
|
|
||||||
#### 使用静态 PV安装 EFK
|
#### 使用静态 PV安装 EFK
|
||||||
|
|
||||||
|
- 请按实际日志容量需求修改 `es-static-pv/es-statefulset.yaml` 文件中 volumeClaimTemplates 设置的 storage: 4Gi 大小
|
||||||
|
- 请根据实际nfs服务器地址、共享目录、容量大小修改 `es-static-pv/es-pv*.yaml` 文件中对应的设置
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# 如果之前已经安装了默认的EFK,请用以下两个命令先删除它
|
# 如果之前已经安装了默认的EFK,请用以下两个命令先删除它
|
||||||
$ kubectl delete -f /etc/ansible/manifests/efk/
|
$ kubectl delete -f /etc/ansible/manifests/efk/
|
||||||
|
@ -132,6 +135,9 @@ es0 es1 es2
|
||||||
|
|
||||||
#### 使用动态 PV安装 EFK
|
#### 使用动态 PV安装 EFK
|
||||||
|
|
||||||
|
- 请按实际日志容量需求修改 `es-dynamic-pv/es-statefulset.yaml` 文件中 volumeClaimTemplates 设置的 storage: 4Gi 大小
|
||||||
|
- 请根据实际nfs服务器地址和共享目录修改 `es-dynamic-pv/nfs-client-provisioner.yaml` 文件中对应的设置
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# 如果之前已经安装了默认的EFK或者静态PV EFK,请用以下命令先删除它
|
# 如果之前已经安装了默认的EFK或者静态PV EFK,请用以下命令先删除它
|
||||||
$ kubectl delete -f /etc/ansible/manifests/efk/
|
$ kubectl delete -f /etc/ansible/manifests/efk/
|
||||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: nfs-client-provisioner
|
name: nfs-client-provisioner
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -30,7 +31,7 @@ metadata:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: nfs-client-provisioner
|
name: nfs-client-provisioner
|
||||||
namespace: default
|
namespace: kube-system
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: nfs-client-provisioner-runner
|
name: nfs-client-provisioner-runner
|
||||||
|
@ -41,6 +42,7 @@ kind: Deployment
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: nfs-client-provisioner
|
name: nfs-client-provisioner
|
||||||
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# 不同k8s版本使用的'api-versions'版本不同,此脚本用于切换yaml文件使用的'api-versions'
|
# WARNNING: 此脚本还在修改中,还未完成
|
||||||
|
# 说明:不同k8s版本使用的'api-versions'版本不同,此脚本用于切换yaml文件使用的'api-versions'
|
||||||
|
# Example 01: 转换单个配置文件为k8s 1.8的版本
|
||||||
|
# bash tools/trans_yml.sh -v 1.8 -f manifests/dashboard/kubernetes-dashboard.yaml
|
||||||
|
# Example 02: 转换某个目录下所有yaml文件为k8s 1.8的版本
|
||||||
|
# for YML in `find manifests/heapster/ -name '*.yaml'`;do bash tools/trans_yml.sh -v 1.8 -f $YML;done;
|
||||||
|
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue