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
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: |
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: 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 |
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
import | |
( | |
“fmt” | |
“github.com/gorilla/mux” | |
) |
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
-Work | |
| | |
-- bin/ | |
| | |
-- pkg/ | |
| | |
-- src/ | |
| | |
-- project1/ | |
| |
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
$ kubectl get svc --namespace=<namespace of kubernetes> | grep <application name> |
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
$ kubectl get po --namespace=<namespace of kubernetes> | grep <application name> |
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
$ kubectl create -f <name of application>.deployment.yml | |
$ kubectl create -f <name of application>.service.yml |
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: | |
labels: | |
k8s-app: <name of application> | |
name: <name of application> | |
namespace: <namespace of Kubernetes> | |
spec: | |
type: NodePort | |
ports: |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: <name of application> | |
namespace: <namespace of Kubernetes> | |
spec: | |
replicas: <number of application pods> | |
template: | |
metadata: | |
labels: |
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
$ docker build -t <name of your application>:<version of application> . |
NewerOlder