Create cluster:
eksctl create cluster -f cluster-config.yaml
Install Prometheus:
helm install prometheus-for-amp prometheus-community/prometheus \
Create cluster:
eksctl create cluster -f cluster-config.yaml
Install Prometheus:
helm install prometheus-for-amp prometheus-community/prometheus \
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/chzyer/readline" | |
"k8s.io/client-go/kubernetes" | |
"k8s.io/client-go/pkg/api/v1" | |
"k8s.io/client-go/tools/clientcmd" |
In this demo we will build a custom OpenTelemetry collector and collect logs and metrics from the operating system.
Prerequisites:
socat
netstat
jq
(optional, for nicer JSON output rendering)package spark.example | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
object SparkGrep { | |
def main(args: Array[String]) { | |
if (args.length < 3) { | |
System.err.println("Usage: SparkGrep <host> <input_file> <match_term>") |
See also:
The bash has three default file descriptors for each process:
Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
The xarm-install-graviton2.sh
script allows you to install and use Amazon EKS on Arm (xARM) with a single command.
In essence, it automates the steps described in the docs.
Make sure you have aws
, eksctl
, kubectl
, and jq
installed, this will be checked on start-up and the script will fail if these deps are not present. So far tested with bash on macOS.
$ chmod +x xarm-install-graviton2.sh
$ ./xarm-install-graviton2.sh
Using the official resource-consumer as a stress tester.
Using EKS on Fargate cluster in eu-west-1
:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-14T04:25:00Z", GoVersion:"go1.12.13", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.8-eks-b8860f", GitCommit:"b8860f6c40640897e52c143f1b9f011a503d6e46", GitTreeState:"clean", BuildDate:"2019-11-25T00:55:38Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
AZ,Availability Zone | |
ASG,Auto Scaling Group | |
EBS,Elastic Block Store | |
ENI,Elastic Network Interface | |
EIP,Elastic IP | |
IGW,Internet Gateway | |
CM,AWS Certificate Manager | |
ADS,Application Discovery Service | |
GWY,Amazon API Gateway | |
GWYv2,Amazon API Gateway V2 |