Skip to content

Instantly share code, notes, and snippets.

View goindwalia's full-sized avatar

Gursimran Singh goindwalia

View GitHub Profile
hash: e444b77a1ddd14f0737181e0f2dc1d4468f88db77b2e36cddde6c67547c39948
updated: 2017-06-14T13:56:26.916785921+5:30
imports:
- name: github.com/gorilla/context
version: 08b5f424b9271eedf6f9f0ce86cb9396ed337a42
- name: github.com/gorilla/mux
version: bcd8bc72b08df0f70df986b97f95590779502d31
- name: github.com/gorilla/gorm
version: 5174cc5c242a728b435ea2be8a2f7f998e15429b
subpackages:
package: nexdash-backend-go
import:
- package: github.com/gorilla/mux
version: ^1.4.0
- package: github.com/jinzhu/gorm
version: ^1.0.0
subpackages:
- dialects/postgres
-Work
|
-- bin/
|
-- pkg/
|
-- src/
|
-- project1/
|
$ kubectl get svc --namespace=<namespace of kubernetes> | grep <application name>
$ kubectl get po --namespace=<namespace of kubernetes> | grep <application name>
$ kubectl create -f <name of application>.deployment.yml
$ kubectl create -f <name of application>.service.yml
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: <name of application>
name: <name of application>
namespace: <namespace of Kubernetes>
spec:
type: NodePort
ports:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: <name of application>
namespace: <namespace of Kubernetes>
spec:
replicas: <number of application pods>
template:
metadata:
labels:
$ docker build -t <name of your application>:<version of application> .