Skip to content

Instantly share code, notes, and snippets.

View carlosonunez's full-sized avatar

Carlos Nunez carlosonunez

View GitHub Profile
21:40:01.432193 IP 10.200.1.5.13638 > 10.200.1.5.53: 37556+ AAAA? google.com. (28)
21:40:01.432203 IP 10.200.1.1.13638 > 10.200.1.5.53: 37556+ AAAA? google.com. (28)
21:40:01.432245 IP 10.200.1.5.13638 > 10.200.1.5.53: 39473+ A? google.com. (28)
21:40:01.432247 IP 10.200.1.1.13638 > 10.200.1.5.53: 39473+ A? google.com. (28)
21:40:01.432279 IP 10.200.1.5.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432281 IP 10.200.1.1.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432308 IP 10.200.1.5.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432309 IP 10.200.1.1.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432374 IP 10.200.1.5.44719 > 10.200.1.5.53: 61381+ A? google.com. (28)
21:40:01.432382 IP 10.200.1.1.44719 > 10.200.1.5.53: 61381+ A? google.com. (28)
# kubedns
# ========
I0801 20:21:46.852197 1 dns.go:48] version: 1.14.6-3-gc36cb11
I0801 20:21:46.852963 1 server.go:69] Using configuration read from directory: /kube-dns-config with period 10s
I0801 20:21:46.853003 1 server.go:112] FLAG: --alsologtostderr="false"
I0801 20:21:46.853013 1 server.go:112] FLAG: --config-dir="/kube-dns-config"
I0801 20:21:46.853018 1 server.go:112] FLAG: --config-map=""
I0801 20:21:46.853021 1 server.go:112] FLAG: --config-map-namespace="kube-system"
I0801 20:21:46.853025 1 server.go:112] FLAG: --config-period="10s"
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,

Keybase proof

I hereby claim:

  • I am carlosonunez on github.
  • I am carlosnunez (https://keybase.io/carlosnunez) on keybase.
  • I have a public key whose fingerprint is 1C64 DF5D DEAD FFDC 31F2 82A8 1F3E 5EC3 2ABA DB1E

To claim this, I am signing this object:

@carlosonunez
carlosonunez / azure_arm_builder_credentials_bug.md
Created November 20, 2017 19:59
azure_arm builder credentials bug

template.json:

{
  "description": "Basic RHEL 7.2 image.",
  "variables": {
    "client_id": null,
    "client_secret": null,
    "subscription_id": null,
    "azure_location": null,
@carlosonunez
carlosonunez / troubleshooting_azure_arm_packer_builder.md
Created November 20, 2017 19:39
Troubleshooting the `azure-arm` Packer builder

This short guide contains a few tips on how to troubleshoot the Azure ARM Packer Builder when stuff goes wrong. I couldn't find a lot of information from my Google searches on this builder. I hope that this Gist fills in the gaps. Please contribute if you have anything to add!

API Responses

The azure-arm builder uses the Go Azure SDK, which, itself, is a wrapper for the Azure REST API. You might get weird exceptions from Packer that aren't reproducable by the Python or node.js clients.

I normally use Charles Web Proxy to figure out what's going on when this happens. Here's how I do that (I am assuming you are on OS X or Linux):

  1. Download Charles.
@carlosonunez
carlosonunez / kubernetes_study_notes.md
Last active October 6, 2017 13:59
Some notes I took while learning about Kubernetes.

Labels

You can use labels to select Pods and other objects in k8s.

DaemonSets

A DaemonSet ensures that Pods get created and run on Nodes predetermined by label selectors in spec.template.metadata. This is useful for logging drivers or databases, i.e. services that have particular Node constraints.

Resourcing

@carlosonunez
carlosonunez / ecs_learning_resources.md
Last active September 3, 2017 02:10
ECS Learning Resources
@carlosonunez
carlosonunez / gist:af38d604bd48eb771b4cdb9bbd0bd761
Created June 9, 2017 21:40
[Terraform] planVersionFormat magic byte issue
# Where is 'terraform'?
[2017-06-09 16:26:36 carlosnunez@DESKTOP-RHPB7LP <<master>> infrastructure] $: which terraform
/usr/local/bin/terraform
# Where is './terraform'?
[2017-06-09 16:27:02 carlosnunez@DESKTOP-RHPB7LP <<master>> infrastructure] $: readlink -f ./terraform
/home/cnunez/src/infrastructure/terraform
# Okay, cool. So we have two different terraform binaries installed. Let's see what their versions are.
[2017-06-09 16:20:26 carlosnunez@DESKTOP-RHPB7LP <<master>> infrastructure]$: terraform version
@carlosonunez
carlosonunez / speaking_and_sponsorship_for_hashicorp_dfw.markdown
Last active May 17, 2017 01:00
HashiCorp DFW Speaking and Sponsoring Guidelines

Hey! Thanks for your interest in speaking at HashiCorp DFW. We're glad you're here!

This is a short document about what we're expecting from our speakers. If you have any feedback about this, feel free to leave a comment here or email me at dev@carlosnunez.me.

Speaking Guidelines

We're looking for talks that focus on using HashiCorp's tools in a given environment, namely:

  • Terraform