Skip to content

Instantly share code, notes, and snippets.

View vshatravenko's full-sized avatar
👌
Saucin'

Valentine Shatravenko vshatravenko

👌
Saucin'
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vshatravenko on github.
  • I am d33p (https://keybase.io/d33p) on keybase.
  • I have a public key ASB4aM9ne_ZfNt5kCAEVQvnk0B6SHbhcdtW9DGT17EBmPwo

To claim this, I am signing this object:

#! /bin/bash
function valid_required_envs() {
# Configs
required_envs=(KUBE_CONTEXT KUBE_SERVER)
# Securities
required_envs+=(KUBE_CERTIFICATE_AUTHORITY)
required_envs+=(KUBE_CLIENT_CERTIFICATE KUBE_CLIENT_KEY)
errors=()
#!/bin/bash
set -xe
# Add user to k8s 1.6 using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]];then
echo "usage: $0 <username> <environment (stg|prod)>"
exit 1
fi
@vshatravenko
vshatravenko / credentials-example.yml
Last active October 13, 2017 17:47
Example pipeline with BitBucket build status and multibranch support
dockerhub-username: "valshatravenko"
dockerhub-password: "**************"
dockerhub-repo: "valshatravenko/hellonode"
repo-username: "vshatravenko"
repo-password: "**************"
repo-project: "hellonode"
repo-name: "hellonode"
repo-url: "vshatravenko@bitbucket.org:schwiffty/hellonode.git"
repo-key: |-
-----BEGIN RSA PRIVATE KEY-----
# Add this pipeline to your Concourse using
# fly set-pipeline -t *concourse_name* -c *pipeline.yml* -p *pipeline name* -n --load-vars-from *credentials.yml* -n
dockerhub-username: "valshatravenko"
dockerhub-password: "**************"
dockerhub-repo: "valshatravenko/hellonode"
github-repo-url: "https://github.com/vshatravenko/hellonode"
k8s-deployment: "test-hellonode"
kubeconfig: |-
*Paste your `cat .kube/config | openssl base64` here*
# Credentials
credentials = "path to service account json"
project = "project name"
region = "eu-****"
zone = "eu-****-*"
# Network Config
vpc_name = "vpc name"
subnet_cidr = "10.0.0.0/24"
variable "project" {
type = "string"
}
variable "region" {
type = "string"
default = "us-east1"
}
variable "zone" {
# Initialize GCP provider
provider "google" {
credentials = "${file("${var.credentials}")}"
project = "${var.project}"
region = "${var.region}"
}
# Create a new VPC
resource "google_compute_network" "platform" {
name = "${var.vpc_name}"
This file has been truncated, but you can view the full file.
OTTO �@CFF ��];��|GPOSP�c', &GSUBVЏ�0T TOS/2��<�0`cmap-��/�Dhead
�K��6hhea  �$hmtx?�� �4kern֎�d@
�maxp�P(name
�?*�post��2 ��V�_<��ё�ё��d�� !��� ;�d�r !�P�+�������2���@ JPYRS@ ������� 99>E9"^9&�
� �
>� r 
u  2� 
u D� 
u L O $i
|�Copyright (c) 2015 by Posterizer KG. All rights reserved.DrinaRegularPosterizerKG: Drina: 2015Version 1.000 2015 initial releaseDrina is a trademark of Posterizer KG.Posterizer KGLazar DimitrijevicCopyright (c) 2015 by Lazar Dimitrijevic. All rights reserved.Copyright (c) 2015 by Posterizer KG. All rights r