Skip to content

Instantly share code, notes, and snippets.

View akash-gautam's full-sized avatar

Akash Gautam akash-gautam

View GitHub Profile
apiVersion: v1
kind: Service
metadata:
name: test-service
spec:
type: LoadBalancer
ports:
- name: test-service
port: 80
protocol: TCP
package publisher
import (
"config"
"encoding/json"
"fmt"
"log"
"math/rand"
"os"
"time"
package producer
import (
"config"
"fmt"
"os"
"time"
"github.com/aws/aws-sdk-go/service/kinesis"
package consumer
import (
"config"
"fmt"
"github.com/aws/aws-sdk-go/service/kinesis"
"velotio.com/dao"
)
package dao
import (
"bytes"
"crypto/tls"
"encoding/json"
"fmt"
"net/http"
)
package main
import (
"time"
"velotio.com/consumer"
"velotio.com/producer"
"velotio.com/publisher"
)
@akash-gautam
akash-gautam / main.go
Created March 24, 2019 18:36
maion.go file for sample application used in ci/cd for k8s using circleci & helm blog
package main
import (
"encoding/json"
"net/http"
"log"
"github.com/gorilla/mux"
)
type Message struct {
@akash-gautam
akash-gautam / deployment.yaml
Last active May 7, 2019 09:30
deployment.yaml file for hello app
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: helloapp
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
@akash-gautam
akash-gautam / service.yaml
Created March 25, 2019 06:47
service.yaml file for hello app
apiVersion: v1
kind: Service
metadata:
name: helloapp
spec:
type: {{ .Values.service.type }}
ports:
- name: helloapp
port: {{ .Values.service.port }}
protocol: TCP
@akash-gautam
akash-gautam / values.yaml
Last active May 7, 2019 09:27
values.yaml file for hello app helm chart
image:
tag: 0.0.1
repository: 123456789870.dkr.ecr.us-east-1.amazonaws.com/helloapp
imagePullPolicy: Always
labels:
env: "staging"
cluster: "eks-cluster-blog"
service: