Skip to content

Instantly share code, notes, and snippets.

@simplytunde
simplytunde / sample-istio-proxy.log
Last active January 15, 2020 17:43
sample istio-proxy log
```
$ kubectl logs -f vault-5c57b46bd7-tpzj6 -n app istio-proxy
2020-01-15T17:31:12.320602Z info FLAG: --applicationPorts="[8200,8201]"
2020-01-15T17:31:12.320830Z info FLAG: --binaryPath="/usr/local/bin/envoy"
2020-01-15T17:31:12.320966Z info FLAG: --concurrency="2"
2020-01-15T17:31:12.321056Z info FLAG: --configPath="/etc/istio/proxy"
2020-01-15T17:31:12.321260Z info FLAG: --connectTimeout="10s"
2020-01-15T17:31:12.321391Z info FLAG: --controlPlaneAuthPolicy="NONE"
2020-01-15T17:31:12.321549Z info FLAG: --controlPlaneBootstrap="true"
2020-01-15T17:31:12.321644Z info FLAG: --customConfigFile=""
@simplytunde
simplytunde / kubeconfig.conf
Created September 16, 2018 19:45
Sample Kubeadm config
api:
advertiseAddress: 172.19.40.24
bindPort: 4443
controlPlaneEndpoint: ""
apiServerCertSANs:
- kubernetes.mycompany.com
apiServerExtraArgs:
authorization-mode: Node,RBAC
apiVersion: kubeadm.k8s.io/v1alpha2
auditPolicy:
@simplytunde
simplytunde / terraform_dynamodb.tf
Created February 6, 2018 08:54
Terraform DynamoDB Autoscaling
provider "aws" {
region = "us-west-1"
}
resource "aws_dynamodb_table" "test-database" {
name = "tenants"
read_capacity = 20
write_capacity = 20
hash_key = "roomNumber"
range_key = "name"
@simplytunde
simplytunde / Dockerfile
Created August 24, 2017 07:00
Automated Jenkins
FROM jenkins:alpine
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
COPY scripts/security.groovy /usr/share/jenkins/ref/init.groovy.d/security.groovy
COPY files/plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
#select our cloud provider
provider "aws" {
region = "${var.aws_region}"
}
#create our vpc from scratch
resource "aws_vpc" "pipeline_1_vpc" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true
tags {
@simplytunde
simplytunde / terraform.tf
Created June 22, 2017 07:33
Terraform By Example: Creating Resources
provider "aws" {
alias="uswest2"
region = "us-west-2"
}
provider "aws" {
alias="uswest1"
region = "us-west-1"
}
variable "ami_map" {
type = "map"

-----BEGIN RSA PRIVATE KEY----- MIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUp wmJG8wVQZKjeGcjDOL5UlsuusFncCzWBQ7RKNUSesmQRMSGkVb1/3j+skZ6UtW+5u09lHNsj6tQ5 1s1SPrCBkedbNf0Tp0GbMJDyR4e9T04ZZwIDAQABAoGAFijko56+qGyN8M0RVyaRAXz++xTqHBLh 3tx4VgMtrQ+WEgCjhoTwo23KMBAuJGSYnRmoBZM3lMfTKevIkAidPExvYCdm5dYq3XToLkkLv5L2 pIIVOFMDG+KESnAFV7l2c+cnzRMW0+b6f8mR1CJzZuxVLL6Q02fvLi55/mbSYxECQQDeAw6fiIQX GukBI4eMZZt4nscy2o12KyYner3VpoeE+Np2q+Z3pvAMd/aNzQ/W9WaI+NRfcxUJrmfPwIGm63il AkEAxCL5HQb2bQr4ByorcMWm/hEP2MZzROV73yF41hPsRC9m66KrheO9HPTJuo3/9s5p+sqGxOlF L0NDt4SkosjgGwJAFklyR1uZ/wPJjj611cdBcztlPdqoxssQGnh85BzCj/u3WqBpE2vjvyyvyI5k X6zk7S0ljKtt2jny2+00VsBerQJBAJGC1Mg5Oydo5NwD6BiROrPxGo2bpTbu/fhrT8ebHkTz2epl

log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
chef_server_url "http://localhost:4000"
file_cache_path "/var/cache/chef"
file_backup_path "/var/lib/chef/backup"
@simplytunde
simplytunde / instance_information.md
Created August 3, 2016 16:09
AWS & Thor: Get User Instance Information
require "aws-sdk"
require "thor"

class MyInstances < Thor
   desc "allMyEc2","Simply get all public ip address of an AWS user account"
   def allMyEc2
        ec2Client=Aws::EC2::Client.new()
        ec2Client.describe_instances.reservations.each do |reservation|
              reservation.instances.each do |instance|
@simplytunde
simplytunde / chef_remote.md
Last active August 2, 2016 15:14
Chef How To: Update Remote File
remote_file '/Users/tunde.oladipupo/Documents/0617/learn-chef/downloaded.py' do
  source "https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py"
  owner "tunde"
  mode "755"
  not_if {File.exists?("/Users/tunde.oladipupo/Documents/0617/learn-chef/downloaded.py")} #could have used :create_if_missing instead
end