This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "rabbitmq" { | |
endpoint = "https://someotherendpoint" | |
alias = "lab" | |
username = var.rabbit_username | |
password = var.rabbit_password | |
insecure = true | |
} | |
provider "rabbitmq" { | |
endpoint = "https://someendpoint" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole | |
metadata: | |
name: ingress-nginx | |
labels: | |
app.kubernetes.io/name: ingress-nginx | |
app.kubernetes.io/part-of: ingress-nginx | |
rules: | |
- apiGroups: [""] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Author: Hari Sekhon | |
# Date: 2007-11-20 18:16:55 +0000 (Tue, 20 Nov 2007) | |
# | |
# https://github.com/harisekhon/nagios-plugins | |
# | |
# License: see accompanying LICENSE file | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
from kubernetes import client, config | |
from kubernetes.utils import create_from_yaml | |
k8s_config = config.load_kube_config( | |
config_file="/yourkubeconfig/kubeconfig") | |
k8s_client = client.api_client.ApiClient(configuration=k8s_config) | |
# taken from here https://raw.githubusercontent.com/pathcl/hellok8s/master/helloworld.yaml | |
create_from_yaml(yaml_file='helloworld.yaml', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from kubernetes import client, config | |
c = client.Configuration() | |
c.debug = True | |
config.load_kube_config( | |
config_file="/Users/lsanmartin/work/capv/out/k8s-m-mgmt/kubeconfig") | |
api = client.CustomObjectsApi() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: tiller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"encoding/json" | |
"encoding/pem" | |
"flag" | |
"io/ioutil" | |
"log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Problem | |
// - we simply want to check ssl certs on ingress on kubernetes | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"path/filepath" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim-bootstrap b0a75e4 | |
"***************************************************************************** | |
"" Vim-PLug core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
endif | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this config file contains all config fields with comments | |
kind: Cluster | |
apiVersion: kind.sigs.k8s.io/v1alpha3 | |
# patch the generated kubeadm config with some extra settings | |
kubeadmConfigPatches: | |
- | | |
apiVersion: kubeadm.k8s.io/v1beta2 | |
kind: ClusterConfiguration | |
metadata: | |
name: config |