...
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ git clone sansae@win10pro-worksp:/workspaces$ mv helm-charts elastic sansae@win10pro-worksp:/workspaces$ cd elastic sansae@win10pro-worksp:/workspaces/elastic$ sansae@win10pro-worksp:/workspaces/elastic$ vi elasticsearch/values.yaml ========================================================= image: "docker.elastic.co/elasticsearch/elasticsearch" imageTag: "7.12.0" imagePullPolicy: "IfNotPresent" ---------------------------------------- volumeClaimTemplate: storageClassName: azurefile accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 30Gi ----------------------------------------========================================================= sansae@win10pro-worksp:/workspaces/elastic$ helm install elasticsearch/ --generate-name -n monitor-efk NAME: elasticsearch-1617184828 LAST DEPLOYED: Wed Mar 31 19:00:30 2021 NAMESPACE: monitor-efk STATUS: deployed REVISION: 1 NOTES: 1. Watch all cluster members come up. $ kubectl get pods --namespace=monitor-efk -l app=elasticsearch-master -w 2. Test cluster health using Helm test. $ helm --namespace=monitor-efk test elasticsearch-1617184828 |
...
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ git clone sansae@win10pro-worksp:/workspaces$ mv helm-charts fluent sansae@win10pro-worksp:/workspaces$ cd fluent sansae@win10pro-worksp:/workspaces/fluent$ cd charts sansae@win10pro-worksp:/workspaces/fluent/charts$ vi fluentd/values.yaml ----------------------------------------========================================================= env: #- name: "FLUENTD_CONF" # value: "../../etc/fluent/fluent.conf" - name: FLUENT_ELASTICSEARCH_HOST value: "elasticsearch-master" - name: FLUENT_ELASTICSEARCH_PORT value: "9200" ----------------------------------------========================================================= sansae@win10pro-worksp:/workspaces/fluent/charts$ helm install fluentd --generate-name -n monitor-efk NAME: fluentd-1617186347 LAST DEPLOYED: Wed Mar 31 19:25:49 2021 NAMESPACE: monitor-efk STATUS: deployed REVISION: 1 NOTES: Get Fluentd build information by running these commands: export POD_NAME=$(kubectl get pods --namespace monitor-efk -l "app.kubernetes.io/name=fluentd,app.kubernetes.io/instance=fluentd-1617186347" -o jsonpath="{.items[0].metadata.name}") echo "curl http://127.0.0.1:24231/metrics for Fluentd metrics" kubectl --namespace monitor-efk port-forward $POD_NAME 24231:24231 |
...