Skip to content

Instantly share code, notes, and snippets.

View miry's full-sized avatar

Michael Nikitochkin miry

View GitHub Profile
@miry
miry / iperf3-host-mode.yaml
Last active September 16, 2020 12:44
Example how to deploy and benchmark of K8S networks
---
apiVersion: v1
kind: Service
metadata:
name: iperf3-server-host-cluster-ip
labels:
app: iperf3-server-host-cluster-ip
spec:
# ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster. This is the default ServiceType.
type: ClusterIP

Keybase proof

I hereby claim:

  • I am miry on github.
  • I am miry (https://keybase.io/miry) on keybase.
  • I have a public key ASBGCpxrC6JTx5c3byIaVn9Gfz95AU4aYpprmCBTmHHbDAo

To claim this, I am signing this object:

Before to create a new resources in the cluster via terraform, need to import current values and names of existen resources to not duplicate them.
1. Import VPC data
```
$ terraform import aws_vpc.virginia_vpc vpc-12312312
$ terraform import aws_subnet.virginia_public_1a subnet-1321123
$ terraform import aws_security_group.virginia_office_ssh sg-321123
```
@miry
miry / gist:14fc1fd95d9f322e5ea3e3f690fc72be
Last active April 8, 2016 13:13
Mesos Master Issues
## Mesos Master Resolve Problems
1. Could not connect to Mesos Master via WebUI:
1. Check EC2 instances run
1. Check Sec Groups that your IP have permissions to access the port 5050
1. Detect which instance does not respond on the port 5050
1. Login to these instances and determine the problem
1. Possible problems and solutions inside instance:
1. Lack of space and process could not write to disk: `df -h`
@miry
miry / rexray.logs
Created January 25, 2016 17:06
Centos 7 could not start rexray
-- Logs begin at Mon 2016-01-25 17:00:28 UTC, end at Mon 2016-01-25 17:05:03 UTC. --
Jan 25 17:00:34 ip-10-0-8-100.ec2.internal systemd[1]: Started rexray.
Jan 25 17:00:34 ip-10-0-8-100.ec2.internal systemd[1]: Starting rexray...
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: time="2016-01-25T17:00:36Z" level=debug msg="updated log level" logLevel=debug
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: time="2016-01-25T17:00:36Z" level=debug msg="invoking service start" os.Args=[/usr/bin/rexray start -f]
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: ⌐▄Q▓▄Ç▓▄,▄_
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: Σ▄▓▓▓▓▓▓▓▓▓▓▄π
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: ╒▓▓▌▓▓▓▓▓▓▓▓▓▓▀▓▄▄.
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: ,_▄▀▓▓ ▓▓ ▓▓▓▓▓▓▓▓▓▓▓█
Jan 25 17:00:36 ip-10-0-8-100.ec2.internal rexray[540]: │▄▓▓ _▓▓▓▓▓▓▓▓▓┌▓▓▓▓▓█
@miry
miry / env.sh
Last active December 16, 2015 17:03
Kubernetes FAQ
#!/usr/bin/env bash
# Place file in ./cluster/env.sh
DEBUG=${DEBUG:-"false"}
if [ "${DEBUG}" = "true" ]; then
set -o xtrace
fi
[vagrant@plugins-centos-66 ~]$ sudo yum install collectd
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.uni-bayreuth.de
* epel: ftp.uni-bayreuth.de
* extras: centos.mirrors.as250.net
* updates: centos.mirrors.as250.net
Resolving Dependencies
--> Running transaction check
@miry
miry / Dockerfile
Created September 9, 2015 07:54
Alpine go test with race
FROM alpine:3.2
RUN apk add --update \
curl \
git \
mercurial \
bzr \
go \
gcc \
g++ \