https://medium.com/containerum/4-tools-to-monitor-your-kubernetes-cluster-efficiently-ceaf62818eea
- Heapster
- Uses influxDB, gafana and cAdvisor?
- Helm: https://github.com/kubernetes/charts/tree/master/stable/heapster
- Prometheus:
- ELK
- Stackdriver
| --- | |
| kind: Pod | |
| apiVersion: v1 | |
| metadata: | |
| name: hello-world | |
| labels: | |
| app: hello-world | |
| spec: | |
| containers: | |
| - name: echo |
| --- | |
| driver: | |
| name: dokken | |
| privileged: true | |
| chef_version: latest | |
| transport: | |
| name: dokken | |
| verifier: |
https://medium.com/containerum/4-tools-to-monitor-your-kubernetes-cluster-efficiently-ceaf62818eea
| AWSTemplateFormatVersion: 2010-09-09 | |
| Resources: | |
| Bucket: | |
| Type: 'AWS::S3::Bucket' | |
| Properties: | |
| AccessControl: PublicRead | |
| WebsiteConfiguration: | |
| IndexDocument: index.html | |
| ErrorDocument: error.html | |
| Distro: |
| #!/bin/bash | |
| yum update -y | |
| yum install -y httpd jq | |
| service httpd start | |
| chkconfig httpd on | |
| echo "<html><head><title>Test page</title></head><body><h1>From $(curl http://169.254.169.254/latest/dynamic/instance-identity/document 2> /dev/null | jq '.region' | sed 's/"//g' ): Hello world</h1></body></html>" > /var/www/html/index.html |
| # This is an attempt at creating a caesar cipher using the ord() | |
| # function and taking input from the user. | |
| import re | |
| def caesar_cipher(mode, input_str, key): | |
| return_str = '' | |
| char_as_num = None | |
| num_as_char = None | |
| char_after_cipher = None |
| #!/bin/bash | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| # General Public License <gnu.org/licenses/gpl.html> for more details. |
| LastTitle := "" | |
| while true { | |
| WinGetActiveTitle, Title | |
| if (LastTitle != Title) | |
| { | |
| LastTitle := Title | |
| FileAppend, %LastTitle%`n, %A_Desktop%\active_windows.txt | |
| } | |
| } |
| #!/usr/bin/python | |
| # | |
| # Example run: | |
| # time ./test_https_timeout.py example.com 200 10 | |
| import httplib | |
| import sys | |
| from time import sleep | |
| # Both are limited to HVM-based 64-bit AMIs backed by EBS | |
| # Red Hat's latest GA images | |
| alias ami_rhel="aws ec2 describe-images \ | |
| --filters \ | |
| 'Name=root-device-type,Values=ebs' \ | |
| 'Name=architecture,Values=x86_64' \ | |
| 'Name=virtualization-type,Values=hvm' \ | |
| 'Name=name,Values=*GA*' \ | |
| --owners 309956199498 \ |