OCI script to create File System snapshots with a retention period


OCI File Storage provides network file system storage. One of its capabilities is the option to create snapshots. In this post we are building a shell script that creates snapshots regularly and deletes those older than a specific number of days Steps Get the ocid of the file system you want to create snapshots for … Continue reading OCI script to create File System snapshots with a retention period

Ordered Sequence of Commands for Starting/Stoping an Stack in OCI


Unless you are in containers/microservices (or other) architectures, typically you have several stacks consisting in (maybe three) layers, like front, mw and db. The idea here is how can I schedule an ordered and dependent sequence of commands for starting or stopping the stacks. Start Sequence Start sequence is typically bottom-up # # start db … Continue reading Ordered Sequence of Commands for Starting/Stoping an Stack in OCI

Automating OKE Clusters start/stop with DevCS


Reusing the work published here, here and here we are showing today how to schedule the start/stop sequence of an OKE cluster with Developer Cloud Service. Start job Create a build with the step as follows: git clone https://github.com/javiermugueta/oke-cluster-start-stop.git cd oke-cluster-start-stop ./oke-cluster-start-stop.sh -r=<region> -c=<compartment> -k=<clustername> -o=start The rest of steps pretty much equal to explained … Continue reading Automating OKE Clusters start/stop with DevCS

Shared Disk Seen by Pods Deployed in two Independent OKE Clusters across two Cloud Regions | Remote Network Peering


In this episode we are creating 2 independent OKE clusters, one in Frankfurt and the other in Phoenix, and then we will create a File System in Frankfurt (kind of NFS server) that will act as repository for a shared persistent volume reachable by all the pods of a deployment deployed to both clusters. Remote … Continue reading Shared Disk Seen by Pods Deployed in two Independent OKE Clusters across two Cloud Regions | Remote Network Peering

Creating Route Rule for Oracle OCI VCN Remote Peering : InvalidParameter – routeRules[0].networkEntityId may not be null


Problem: When creating a route rule for VCN remote peering between 2 Virtual Cloud Networks in different regions in Oracle OCI using the web console, the UI does not provide a way for selecting the DRG: Solution: Create the route rule with the CLI as follows: oci network route-table create --compartment-id xxx --vcn-id yyy --route-rules … Continue reading Creating Route Rule for Oracle OCI VCN Remote Peering : InvalidParameter – routeRules[0].networkEntityId may not be null