How to ssh to OKE (k8s) Private Node (worker compute node) via Jump Box (Bastion Server)


In OKE typically you create, for redundancy and high availability reasons, a k8s cluster in 5 or more subnets: 2 are public and, in there, is where the public load balancer is deployed, for example one in AD1 and the other in AD3 3 or more are private, and, in there, is where the worker … Continue reading How to ssh to OKE (k8s) Private Node (worker compute node) via Jump Box (Bastion Server)

Connecting to OCI DB System with SQLDeveloper via Bastion Box


Recipe for creating a secure connection between sqlDeveloper in our local machine and an Oracle Cloud Infra DB System created in a private subnet of a Virtual Cloud Network network not opened to internet Steps Create a new DB System and grab the private IP of the database system node Create a compute VM with … Continue reading Connecting to OCI DB System with SQLDeveloper via Bastion Box

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

Shared Disk for your Pods: PersistentVolumes for Oracle Kubernetes Engine (OKE) Implemented as NFS File Storage in Oracle Cloud Infrastructure (OCI)


When you deploy in k8s a pod depending in persistent volume attached to block storage (for example this post), the volume created is mounted on a specific node. If that node fails or is stopped, the pods running on it fail when trying to be created in other node according to the replication policies they … Continue reading Shared Disk for your Pods: PersistentVolumes for Oracle Kubernetes Engine (OKE) Implemented as NFS File Storage in Oracle Cloud Infrastructure (OCI)

Using Ansible in Oracle Cloud Infrastructure OCI


Today a short recipe for Ansible in Oracle Cloud (OCI) Install it: brew update brew install openssl brew upgrade openssl brew install python pip install virtualenv virtualenv oci_sdk_env source oci_sdk_env/bin/activate pip install oci pip install oci==2.1.3 pip install --upgrade pip pip install ansible git clone https://github.com/oracle/oci-ansible-modules.git cd oci-ansible-modules ./install.py pip install idna Prepare it: Create … Continue reading Using Ansible in Oracle Cloud Infrastructure OCI

BucketNotEmpty – Bucket named ‘xxxx’ is not empty. Delete all objects first


Oracle OCI object storage "buckets" can't be deleted from OCI dashboard unless they are empty... and no empty option menu exists at all (at least at the time of this post). Anyway, you can do it using the CLI... Follow these steps: If you don't have OCI CLI installed follow this post oci os object … Continue reading BucketNotEmpty – Bucket named ‘xxxx’ is not empty. Delete all objects first

Deploying an Oracle Database with Persistence Enabled in Oracle Kubernetes Engine in Ten Minutes or Less


In a previous post I explained how to create the same thing using an image published in docker registry under my user. Well... that post is not working anymore because I deleted the image for some reasons. The method exposed here is better because the deployment file pulls the official image published here. Therefore you … Continue reading Deploying an Oracle Database with Persistence Enabled in Oracle Kubernetes Engine in Ten Minutes or Less