Golang Web server to draw cards from The Tarot of the Silicon Dawn https://silicon-dawn.cards
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1.3 KiB

make a default run kubectl run silicon-dawn --image=silicon-dawn:latest

save yaml kubectl get deployment silicon-dawn -o yaml > deployment.yaml

delete old kubectl delete deployment silicon-dawn

edit to only pull if not needed edit deployment imagePullPolicy: IfNotPresent

recreate the deploy kubectl apply -f deployment.yml

Expose the webapp kubectl expose deployment silicon-dawn --port 8000 --target-port 8000 kubectl port-forward svc/silicon-dawn 8000

READ THIS https://kubernetes.io/docs/concepts/services-networking/service/

so editing the deployment then redeploy with kubectl apply -f deployment.yml

Ingress

I am so not sure about this

set up default me ingress kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml

https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ https://kubernetes.io/docs/concepts/configuration/secret/

How to set up my server

  1. Put caddy in a docker
  2. put caddy in a k8s
  3. ingress caddy for access on all the ports it needs
  4. Put gitea in a k8s
  5. put sd in the thing