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: Service | |
| metadata: | |
| name: test-service | |
| spec: | |
| type: LoadBalancer | |
| ports: | |
| - name: test-service | |
| port: 80 | |
| protocol: TCP |
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 publisher | |
| import ( | |
| "config" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "os" | |
| "time" |
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 producer | |
| import ( | |
| "config" | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/aws/aws-sdk-go/service/kinesis" |
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 consumer | |
| import ( | |
| "config" | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/service/kinesis" | |
| "velotio.com/dao" | |
| ) |
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 dao | |
| import ( | |
| "bytes" | |
| "crypto/tls" | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| ) |
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 ( | |
| "time" | |
| "velotio.com/consumer" | |
| "velotio.com/producer" | |
| "velotio.com/publisher" | |
| ) |
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 ( | |
| "encoding/json" | |
| "net/http" | |
| "log" | |
| "github.com/gorilla/mux" | |
| ) | |
| type Message struct { |
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: apps/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: helloapp | |
| spec: | |
| replicas: 1 | |
| strategy: | |
| type: RollingUpdate | |
| rollingUpdate: | |
| maxSurge: 1 |
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: Service | |
| metadata: | |
| name: helloapp | |
| spec: | |
| type: {{ .Values.service.type }} | |
| ports: | |
| - name: helloapp | |
| port: {{ .Values.service.port }} | |
| protocol: TCP |
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
| 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: |