k8sm
所属分类:微服务
开发工具:HCL
文件大小:211KB
下载次数:0
上传日期:2020-10-07 15:30:23
上 传 者:
sh-1993
说明: k8s内的mini-spacemesh测试网
(mini spacemesh testnet inside k8s)
文件列表:
LICENSE (1066, 2020-10-07)
deployment (0, 2020-10-07)
deployment\AWS (0, 2020-10-07)
deployment\AWS\eks-admin-service-account.yml (358, 2020-10-07)
deployment\AWS\k8s-apps (0, 2020-10-07)
deployment\AWS\k8s-apps\01.helm-install (0, 2020-10-07)
deployment\AWS\k8s-apps\01.helm-install\cleanup.sh (802, 2020-10-07)
deployment\AWS\k8s-apps\01.helm-install\helm-init.yml (1410, 2020-10-07)
deployment\AWS\k8s-apps\01.helm-install\helm-rbac-cluster-wide.yml (348, 2020-10-07)
deployment\AWS\k8s-apps\01.helm-install\install.sh (273, 2020-10-07)
deployment\AWS\k8s-apps\01.helm-install\transcript (1924, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\cleanup.sh (144, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk-0.1.2.tgz (11729, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\.helmignore (333, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\Chart.yaml (250, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\.helmignore (333, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\Chart.yaml (278, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\templates (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\templates\NOTES.txt (209, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\templates\_helpers.tpl (1387, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\templates\cluster.yaml (1772, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\elasticsearch\values.yaml (1076, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit\Chart.yaml (400, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit\templates (0, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit\templates\NOTES.txt (553, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit\templates\_helpers.tpl (1125, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit\templates\cluster-role.yaml (423, 2020-10-07)
deployment\AWS\k8s-apps\02.efk-install\efk\charts\fluent-bit\templates\cluster-rolebinding.yaml (594, 2020-10-07)
... ...
1. Elasticsearch
2. Kibana
3. Fluent-bit
Install ElasticSearch
=====================
1. ElasticSearch runs on the "infra" nodepool.
Add the following to values.yaml in Elastic helm chart:
...
nodeSelector:
role: infra
...
2. Run helm install dry run and validate the nodeSelector appears:
helm install --debug --dry-run --name elasticsearch --namespace=logging elasticsearch --version 6.5.4-alpha1 > /tmp/es2.yaml
check /tmp/es2.yaml
3. Run install:
helm install --name elasticsearch --namespace logging elasticsearch --version 6.5.4-alpha1
4. Check that pods status is ok
kubectl get pods --namespace=logging -l app=elasticsearch-master -w
5. Run helm installation test:
helm test elasticsearch
6. If you wish to enable ingress to elasticsearch, the service should be "NodePort"
Add the following to elasticsearch/templates/service.yaml
....
spec:
type: NodePort
selector:
.....
....
Run: helm upgrade elasticsearch --namespace=logging elasticsearch --version 6.5.4-alpha1
Check Service type: kubectl get svc -n logging
Install Kibana
=====================
1. Kibana runs on the "infra" nodepool.
Add the following to values.yaml in Kibana helm chart:
...
nodeSelector:
role: infra
...
2. Run helm install dry run and validate that nodeSelector is set
helm install --debug --dry-run --name kibana --namespace logging kibana --version 6.5.4-alpha1 > /tmp/kibana.yaml
check /tmp/kibana.yaml
3. Run `helm install`
helm install --name kibana --namespace logging kibana --version 6.5.4-alpha1
4. Replace Kibana service to run on NodePort rather than on ClusterIP
kubectl delete svc kibana-kibana -n logging
kubectl cretae -f kibana-service.yml -n logging (kibana-service.yml in this repo)
5. Install ingress controller for Kibana
helm install stable/nginx-ingress --namespace kube-system
verify external IP
kubectl get svc -n kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
winning-dog-nginx-ingress-controller LoadBalancer 10.15.254.23 35.1***.74.170 80:30655/TCP,443:30291/TCP 4h
winning-dog-nginx-ingress-default-backend ClusterIP 10.15.243.5 80/TCP 4h
In this stage, you should be able to connect to kibana through the external IP: http://35.1***.74.170/
6. make the ingress controller external IP be static in GCP
export IP_ADDRESS=35.1***.74.170
gcloud compute addresses create kibana --addresses $IP_ADDRESS --region europe-west3
7. Configure basic-auth
First, we need to create the htpasswd file for storing the usernames and passwords.
Create a Secret containing this file so the NGINX Ingress controller can use it.
run:
htpasswd -bc auth ingress-user ingress-password
Create secret in kubernetes cluster:
kubectl create secret generic kibana-basic-auth --from-file=auth -n logging
Cretae ingress for kibana
kubectl create -f kibana-ingress-auth.yml -n logging
In this file you should set the host DNS.
the host DNS is an 'A' record in your domain points to the external IP create in section (5) above
Install Fluent-bit
========================
Run:
helm install --name fluent-bit --namespace logging fluent-bit
近期下载者:
相关文件:
收藏者: