Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Zaragoza dev ops-activiti-khd-20181212

88 views

Published on

Deploying Actitivi 7 (Beta) with K8S + Helm

Published in: Software
  • Be the first to comment

  • Be the first to like this

Zaragoza dev ops-activiti-khd-20181212

  1. 1. Angel Borroy | Docker Zaragoza https://www.meetup.com/Meetup-Group-docker-Zaragoza Deploying Activiti Cloud with Kubernetes, Helm and Docker
  2. 2. During this session you can…. • Discover Docker Zaragoza Meetup • Enjoy a short intro presentation • Understand how Activiti 7 is being prepared for Native Cloud deployment ○ Helm ○ k8s ○ Docker
  3. 3. Deploying Activiti Cloud WITH DOCKER + HELM + K8S
  4. 4. Software catalog CLOUD NATIVE APPLICATIONS • Docker • Kubernetes • Helm • Activiti 7 ○ Keycloak
  5. 5. Helm Package Manager for Kubernetes • Helm chart ○ Docker images ○ Services configuration ○ Infrastructure configuration • Helm is the CLI & Tiller is the service • Charts are published on a repository • Dependencies, multiple configurations, templates, releases... https://hub.helm.sh
  6. 6. • Spring Cloud based • Keycloak for IDM & SSO • Activiti Modeler BPMN 2.0 • API Gateway • Service Registry • Config Server • Zipkin (traces) • Activiti Applications Activiti 7 Process Automation aka BPM
  7. 7. • Runtime Bundle ○ Process definitions & instances • Query Service ○ Aggregate data from other services • Audit Service • Notification Service • Cloud Connectors ○ Service Tasks Activiti 7 Process Automation aka BPM
  8. 8. Activiti 7 Deploying and Running a Process https://github.com/Activiti/ activiti-cloud-charts/tree/ master/activiti-cloud-full-e xample
  9. 9. Activiti 7 https://localhost:31234
  10. 10. Activiti 7 $ helm repo add activiti-cloud-charts https://activiti.github.io/activiti-cloud-charts/ "activiti-cloud-charts" has been added to your repositories $ helm repo list NAME URL stable https://kubernetes-charts.storage.googleapis.com local http://127.0.0.1:8879/charts alfresco-incubator https://kubernetes-charts.alfresco.com/incubator activiti-cloud-charts https://activiti.github.io/activiti-cloud-charts/
  11. 11. Activiti 7 $ kubectl create namespace activiti7 namespace "activiti7" created $ kubectl get namespaces NAME STATUS AGE activiti7 Active 2s default Active 3d kube-public Active 3d kube-system Active 3d $ helm repo update $ helm install stable/nginx-ingress --namespace=activiti7 $ kubectl get services -n activiti7 NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) hardy-moth-nginx-ingress-controller LoadBalancer 10.104.75.117 localhost 80:31357/TCP,443:30350/TCP hardy-moth-nginx-ingress-default-backend ClusterIP 10.98.155.68 <none> 80/TCP
  12. 12. Activiti 7 $ git clone https://github.com/Activiti/activiti-cloud-charts $ cd activiti-cloud-chars $ ifconfig en7: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=4<VLAN_MTU> ether 58:ef:68:7d:14:cd inet 10.244.50.42 netmask 0xffffff00 broadcast 10.244.50.255 media: autoselect (1000baseT <full-duplex>) status: active https://github.com/Activiti/activiti-cloud-charts/blob/master/activiti-cloud -full-example/values.yaml REPLACEME > 10.244.50.42.nip.io
  13. 13. $ cd activiti-cloud-full-example/ $ helm install -f values.yaml activiti-cloud-charts/activiti-cloud-full-example --namespace=activiti7 $ kubectl get pods -n activiti7 NAME READY STATUS RESTARTS AGE hardy-moth-nginx-ingress-controller-887bfc895-tgkcj 1/1 Running 0 10m hardy-moth-nginx-ingress-default-backend-dbf95b869-vzr4j 1/1 Running 0 10m inky-moth-activiti-cloud-audit-55f75db476-jmktx 0/1 ContainerCreating 0 57s inky-moth-activiti-cloud-connector-845d6c448d-pzv5d 0/1 Running 0 57s inky-moth-activiti-cloud-gateway-66d747865c-5nh8t 0/1 Running 0 57s inky-moth-activiti-cloud-modeling-595f994bc6-km7pz 0/2 ContainerCreating 0 57s inky-moth-activiti-cloud-query-58cdb74497-tbgnb 0/1 Running 0 57s inky-moth-keycloak-0 0/1 Running 0 57s inky-moth-rabbitmq-0 0/1 Running 0 57s inky-moth-runtime-bundle-56cf7cfbc5-gsmk4 0/1 Running 0 57s Activiti 7
  14. 14. $ helm ls --namespace=activiti7 NAME REVISION UPDATED STATUS CHART APP VERSION hardy-moth 1 Thu Dec 13 13:17:41 2018 DEPLOYED nginx-ingress-1.0.2 0.21.0 inky-moth 1 Thu Dec 13 13:27:27 2018 DEPLOYED activiti-cloud-full-example-0.5.0 1.0 $ helm search activiti-cloud-full NAME CHART VERSION APP VERSION DESCRIPTION activiti-cloud-charts/activiti-cloud-full-example0.5.0 1.0 An Activiti Helm chart Activiti 7
  15. 15. Activiti 7
  16. 16. http://activiti-keycloak.10.244.50.42.nip.io/auth/admin/master/console Activiti 7
  17. 17. http://activiti-cloud-gateway.10.244.50.42.nip.io/activiti-cloud-modeling Activiti 7
  18. 18. $ kubectl -n activiti7 delete svc --all $ kubectl -n activiti7 delete po --all $ kubectl delete namespace activiti7 Error from server (Conflict): Operation cannot be fulfilled on namespaces "activiti7": The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system. Activiti 7 Drive out the rubbish
  19. 19. THANK YOU :)THANK YOU :)

×