Skip to content

MrCoffey/helm-go-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and push the image

docker build -t demo:test .

docker tag demo:test coffey0container/demo:latest

docker push coffey0container/demo:latest

Example on Kubernetes

1.) Generate the pod file

kubectl run demo --image=coffey0container/demo:latest --generator=run-pod/v1 --dry-run -o yaml > pod.yaml

2.) Create the pod

kubectl create -f pod.yaml

3.) Expose the pod:

kubectl expose pod/demo --name=demo-service

4.) Port forward the service:

k port-forward service/demo-service 8000:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published