Orchestration in the Oracle Cloud Packer Terraform Kubernetes
Orchestration in the Oracle Cloud. Packer, Terraform, Kubernetes and Resource Manager in OCI.
Agenda ● Automation. ● Why in the cloud? ● Tools and terms. ● Packer. ● Terraform. ● Resource manager. ● Kubernetes. ● QA.
Gleb Otochkin Senior Cloud Architect Started to work with data in 1992 Area of expertise: ● Data Integration ● Oracle RAC ● Oracle engineered systems ● Virtualization ● Performance tuning ● Big Data ● Cloud technologies. gleb. otochkin@eclipsys. ca @sky_vst 3 Eclipsys Solutions
Automation. 4 Eclipsys Solutions Feb-22
Automation. Different levels and areas – almost everything can be automated. Automated deployments. Orchestration. Application deployments. Security. Configuration management 5 Eclipsys Solutions Feb-22
Why in the cloud? Cloud is the best place to start and to apply automation techniques. Self-service interface and API. Tools to use the API to deploy IAC. Autoscaling. Infrastructure as a Service Infrastructure as Code Autoscaling 6 Eclipsys Solutions Feb-22
Tools There is no tool which can do everything. 7 Eclipsys Solutions Feb-22
Tools. Packer. Terraform. Resource manager. Docker. Kubernetes. 8 Eclipsys Solutions Feb-22
9 Eclipsys Solutions Feb-22 Packer.
Packer. Create custom image. Oracle Cloud Infrastructure region Source image VM Apply configuration. Create custom image Destroy VM 10 Eclipsys Solutions Feb-22
Packer. Custom images – region scope. Move to another region using OCI object storage. Identification using OCID (names are not unique). Git or another versioning tool for development. 11 Eclipsys Solutions Feb-22
12 Eclipsys Solutions Feb-22 Demo. What could possibly go wrong?
13 Eclipsys Solutions Feb-22 Terraform.
What is Terraform? Infrastructure as Code (Ia. C). To build, change and to destroy using versioning tools. Run it to manage OCI, AWS, Azure and many others. Terraform registry – community repository. https: //registry. terraform. io/ Terraform cloud – collaboration tool. https: //app. terraform. io 14 Eclipsys Solutions Feb-22
Terraform in action. git checkout … Write terraform scripts. terraform plan Plan Apply State file. OCI region. OCI compartment. Create resources in OCI Destroy terraform apply 15 Eclipsys Solutions Feb-22
Terraform state file - source of truth. With new version can discover resources in compartment. Possible to create SVG file using terraform state file. Terraform enterprise or terraform cloud for collaboration. OCI Resource Manager – native OCI Terraform service. 16 Eclipsys Solutions Feb-22
17 Eclipsys Solutions Feb-22 Demo. What could possibly go wrong?
Resource Manager OCI. git checkout … Write terraform scripts. Zip the scripts to a file Create a new RM stack and upload the zip file OCI region. OCI compartment. zip stack 01. zip * RM stack jobs. Plan Apply Destroy Edit variables. 18 Eclipsys Solutions Feb-22
19 Eclipsys Solutions Feb-22 Terraform cloud. TEAMWORK IN THE CLOUD.
Terraform cloud Workspace Plan Git. Hub Apply Commit Destroy OCI region. OCI compartment. 20 Eclipsys Solutions Feb-22
21 Eclipsys Solutions Feb-22 Demo. What could possibly go wrong?
22 Eclipsys Solutions Feb-22 Kubernetes containers.
Docker Guest OS App D App A App C App A App B VM App A Basic architecture. Docker vs Virtual Machine. App A Docker Hypervisor Host OS Infrastructure 23 Eclipsys Solutions Feb-22
Kubernetes in OCI. Registry Management UI OKE Kubernetes API Orchestration Service registry Images. Containers Virtual Infrastructure Virtual Machine Virtual Cloud Network Block Storage 24 Eclipsys Solutions Feb-22
OCI OKE service OKE workflow Prepare a docker image with application. App deploying tools. Wercker Jenkins Push it to OCI registry service Create a cluster in OKE service. Register service using kubectl. Deploy the image to OKE cluster. 25 Eclipsys Solutions Feb-22
OKE + Autonomous use case Docker image Cloud Infrastructure Registry Oracle OKE Docker image Pods Docker image OKE Load Balancer OKE service Frontend Backend (Java) Weblogic Database Oracle ATP 26 Eclipsys Solutions Feb-22
QA 27
THANK YOU Email: gleb. otochkin@eclipsys. ca Blog: https: //eclipsys. ca/blog/ Twitter: @sky_vst 28
- Slides: 28