Demo golang api
podman pull public.ecr.aws/flynshue/articles:v0.1.1
podman run -d -p 8080:5000 public.ecr.aws/flynshue/articles:v0.1.1
This uses ocp routes, which is why it's ocp specific.
oc apply -f deployment.yaml
helm install -n <namespace> <helm release> charts/articles
Here's an example of deploying helm release articles to namespace test-flynshue
helm install -n test-flynshue articles charts/articles
To install with ocp route
helm install -n test-flynshue articles charts/articles \
--set route.enabled=true
To install with ingress
Create values file for chart. Here's an example using ingress-nginx and cert-manager
vim articles-values.yaml
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-staging"
hosts:
- host: articles.apps.seadogslab.com
paths:
- "/"
tls:
- secretName: articles-ingress-cert
hosts:
- articles.apps.seadogslab.com
helm install -n test-flynshue articles charts/articles \
--values=articles-values.yaml
To update an existing helm release
helm upgrade -n <namespace> <helm release> charts/articles
argocd app create articles \
--repo https://github.com/flynshuePersonal/articles.git \
--path charts/articles-chart --dest-namespace flynshue \
--dest-server https://kubernetes.default.svc