mahedley / JavaK8sDemo

Demo Files for WebSphere Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Demo for WebSphere deploy on docker in K8s

Pre-Requisites

Instructions

  1. Clone the repository
  2. Download DefaultServlet from here: https://developer.ibm.com/wasdev/docs/article_appdeployment/
  3. Unpack the DefaultServletEngine folder into the WebSphereContainer folder
  4. Build the WebSphere Container
  • cd WebSphereContainer
  • build -t demowas .
  1. Build the Apache Container
  • cd WebContainer
  • build -t demoapache .
  1. Create a new container registry with az cli
  • az group create --location WestUS --name yourregistrygroup
  • az acr create --name youracr --resource-group yourregistrygroup --sku Basic --admin-enabled=true
  1. Connect to your acr with Docker
  • docker login youracr.azurecr.io -u youracr -p adminpw
  1. Push your images to your acr
  • docker image tag demowas youracr.azurecr.io/demowas
  • docker image tag demoapache youracr.azurecr.io/demoapache
  • docker push youracr.azurecr.io/demowas
  • docker push youracr.azurecr.io/demoapache
  1. Create a kubernetes deployment on azure
  • az group create --name youracs --location WestUS
  • az acs create -n youracs --resource-group youracs -t kubernetes
  1. Setup kubectl
  1. Add your container registry to your cluster
  • kubectl create secret docker-registry youracr.azurecr.io --docker-username=youracr --docker-password=adminpw --docker-email=fakemail@fake.com
  1. Deploy the helm template
  • helm install javademo
  1. Use kubectl to get the ip address of the apache service
  • kubectl get services
  • Record the public ip for the apacheservice once it's up
  1. Check that it works

About

Demo Files for WebSphere Kubernetes


Languages

Language:ApacheConf 96.9%Language:Smarty 2.4%Language:HTML 0.7%