Skip to content

Instantly share code, notes, and snippets.

View Mirage20's full-sized avatar

Mirage Abeysekara Mirage20

  • WSO2 Lanka (Pvt.) Ltd.
  • Sri Lanka
View GitHub Profile
@Mirage20
Mirage20 / vscode_golang_settings.json
Last active December 2, 2019 14:29
VSCode Golang Settings
{
"go.useLanguageServer": true,
// "go.languageServerFlags": [
// "-rpc.trace", // for more detailed debug logging
// "serve",
// "--debug=localhost:6060", // to investigate memory usage, see profiles
// ],
"go.languageServerExperimentalFeatures": {
"autoComplete": true,
"rename": true,
@Mirage20
Mirage20 / todo-app.yaml
Created October 31, 2019 11:23
Todo Service - Cell
apiVersion: mesh.cellery.io/v1alpha2
kind: Cell
metadata:
name: todo-app
spec:
gateway:
spec:
ingress:
extensions:
clusterIngress:
@Mirage20
Mirage20 / todo-app-ingress.yaml
Created October 31, 2019 11:16
Todo Service - Microservice Deployment
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: todo-app-ingress
spec:
rules:
- host: todo-app.org
http:
paths:
- backend:
@Mirage20
Mirage20 / todos-service.yaml
Last active October 31, 2019 11:18
Todo Service - Microservice Deployment
apiVersion: v1
kind: Service
metadata:
name: todos-service
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
@Mirage20
Mirage20 / todos-deployment.yaml
Created October 31, 2019 11:15
Todo Service - Microservice Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: todos
version: v1.0.0
name: todos-deployment
spec:
replicas: 1
selector:
@Mirage20
Mirage20 / todos-db-credentials.yaml
Created October 31, 2019 11:15
Todo Service - Microservice Deployment
apiVersion: v1
data:
password: cm9vdA==
username: cm9vdA==
kind: Secret
metadata:
name: todos-db-credentials
@Mirage20
Mirage20 / todos-mysql-db-service.yaml
Created October 31, 2019 11:08
Todo Service - MySQL Deployment
apiVersion: v1
kind: Service
metadata:
name: todos-mysql-db-service
spec:
ports:
- name: tcp
port: 3306
protocol: TCP
targetPort: 3306
@Mirage20
Mirage20 / todos-mysql-db-deployment.yaml
Created October 31, 2019 11:08
Todo Service - MySQL Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: todos-mysql-db-deployment
spec:
replicas: 1
selector:
matchLabels:
app: todos-mysql-db
version: v1.0.0
@Mirage20
Mirage20 / todos-mysql-init-sql.yaml
Created October 31, 2019 11:04
Todo Service - MySQL Deployment
apiVersion: v1
data:
init.sql: |
CREATE DATABASE IF NOT EXISTS `todos_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `todos_db`;
-- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64)
--
-- Host: localhost Database: todos_db
-- ------------------------------------------------------
-- Server version 5.7.27-0ubuntu0.16.04.1
@Mirage20
Mirage20 / .conkyrc
Created June 19, 2019 18:11
Conky Configuration
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen