ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
下载kibana镜像 ``` docker pull kibana:6.8.6 docker tag adfab5632ef4 harbor.od.com/infra/kibana:v6.8.6 docker push harbor.zq.com/infra/kibana:v6.8.6 ``` 准备目录 ``` mkdir /data/k8s-yaml/kibana cd /data/k8s-yaml/kibana ``` 准备dp资源清单 ``` cat >deployment.yaml <<'EOF' kind: Deployment apiVersion: extensions/v1beta1 metadata: name: kibana namespace: infra labels: name: kibana spec: replicas: 1 selector: matchLabels: name: kibana template: metadata: labels: app: kibana name: kibana spec: containers: - name: kibana image: harbor.zq.com/infra/kibana:v6.8.6 imagePullPolicy: IfNotPresent ports: - containerPort: 5601 protocol: TCP env: - name: ELASTICSEARCH_URL value: http://10.4.7.12:9200 imagePullSecrets: - name: harbor securityContext: runAsUser: 0 strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 1 maxSurge: 1 revisionHistoryLimit: 7 progressDeadlineSeconds: 600 EOF ``` 准备svc资源清单 ``` cat >service.yaml <<'EOF' kind: Service apiVersion: v1 metadata: name: kibana namespace: infra spec: ports: - protocol: TCP port: 5601 targetPort: 5601 selector: app: kibana EOF ``` 准备ingress资源清单 ``` cat >ingress.yaml <<'EOF' kind: Ingress apiVersion: extensions/v1beta1 metadata: name: kibana namespace: infra spec: rules: - host: kibana.zq.com http: paths: - path: / backend: serviceName: kibana servicePort: 5601 EOF ``` 应用资源配置清单 ``` kubectl apply -f http://k8s-yaml.zq.com/kibana/deployment.yaml kubectl apply -f http://k8s-yaml.zq.com/kibana/service.yaml kubectl apply -f http://k8s-yaml.zq.com/kibana/ingress.yaml ``` 解析域名 ``` vim /var/named/od.com.zone kibana A 10.4.7.10 systemctl restart named dig -t A kibana.od.com @10.4.7.11 +short 10.4.7.10 ```