Helm Charts for deploying demoapp to Kubernetes and OpenShift
Prerequisites:
- Kubernetes Cluster
Steps:
- Install NGINX Ingress Controller
# Pull Helm Chart
helm pull oci://ghcr.io/nginxinc/charts/nginx-ingress --untar
cd nginx-ingress
# Apply CRDs
kubectl apply -f crds/
# Create `nginx-ingress` namespace
kubectl create ns nginx-ingress
# Set current namespace to `nginx-ingress`
kubectl config set-context `kubectl config current-context` --namespace nginx-ingress
kubectl config get-contexts
# Install Helm Chart
helm install nginx-ingress . -n nginx-ingress
# Check pods
watch oc get pods
# Get `nginx` Ingress Class
oc get ingressclass nginx
# Go back to previous working directory
cd -
- Create
demo
namespace
# Create `demo` namespace
kubectl create ns demo
# Set current namespace to `demo`
kubectl config set-context `kubectl config current-context` --namespace demo
kubectl config get-contexts
- Create demoapp nginx master ingress
kubectl apply -f deploy/demoapp-nginx-master.yaml -n demo
- Deploy
demoapp-backend
cd charts/demoapp-backend
helm dependency update .
helm upgrade -i demoapp-backend . \
-n demo \
--values values-docker-desktop.yaml
cd -
- Deploy
demoapp-frontend
cd charts/demoapp-frontend
helm dependency update .
helm upgrade -i demoapp-frontend . \
-n demo \
--values values-docker-desktop.yaml
cd -
Prerequisites:
Steps:
- Create
demo
project
# Login to OpenShift Local
oc login -u kubeadmin https://api.crc.testing:6443
# Create project
oc new-project demo
- Deploy
demoapp-backend
cd charts/demoapp-backend
helm dependency update .
helm upgrade -i demoapp-backend . \
--values values-openshift-local.yaml
- Deploy
demoapp-frontend
cd charts/demoapp-frontend
helm dependency update .
helm upgrade -i demoapp-frontend . \
--values values-openshift-local.yaml