Skip to content

Instantly share code, notes, and snippets.

View mugithi's full-sized avatar

Isaack Karanja mugithi

  • San Francisco Bay Area
  • 15:57 (UTC -12:00)
View GitHub Profile
cluster_name = "slurm-tpu-isaack"
project = "network-host-project-243718"
zone = "us-central1-b"
network_name = "slurm-network-001"
subnetwork_name = "slurm-network-001"
# shared_vpc_host_project = "<vpc host project>"
# disable_controller_public_ips = true
# disable_login_public_ips = true
import os
import time
from slackclient import SlackClient
import requests
import json
import base64
from pymongo import MongoClient
import json
from bson.json_util import dumps
import copy
## kube-lego configuration
## Ref: https://github.com/jetstack/kube-lego
##
config:
## Email address to use for registration with Let's Encrypt
##
LEGO_EMAIL: '[email protected]'
## Let's Encrypt API endpoint
## Production: https://acme-v01.api.letsencrypt.org/directory
!/usr/bin/groovy
/**
* This pipeline describes a multi container job
*/
@Library('github.com/mugithi/jenkinsfile-pipeline@master')
def pipeline = new io.estrado.Pipeline()
podTemplate(label: 'pipeline', containers: [
ind: Service
apiVersion: v1
metadata:
name: nginx-default-backend
labels:
k8s-addon: ingress-nginx.addons.k8s.io
spec:
ports:
- port: 80
targetPort: http
helm install infra-isaack-io --dry-run --debug
[debug] Created tunnel using local port: '51663'
[debug] SERVER: "localhost:51663"
[debug] Original chart version: ""
[debug] CHART PATH: /Users/isaackkaranja/github/blog-isaack-io-on-k8s/infra-isaack-io
NAME: oppulent-lizzard
REVISION: 1
---
# Default values for wordpress-isaack.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: mugithi/blog
tag: latest
registry: index.docker.io
registrysecrets: myregistrykey
---
apiVersion: v1
kind: Service
metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
---
{{- if .Values.ingress.enabled -}}
{{- $serviceName := include "fullname" . -}}
{{- $servicePort := .Values.service.externalPort -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "name" . }}
@mugithi
mugithi / yaml
Last active August 1, 2017 15:23
ingress controller
kind: Service
apiVersion: v1
metadata:
name: nginx-default-backend
labels:
k8s-addon: ingress-nginx.addons.k8s.io
spec:
ports:
- port: 80
targetPort: http