Containers and Kubernetes

Get Involved. Join the Conversation.

Comments

  • Alex_D_Oracle

    I know, this is a very late answer, but it may be useful for new forum visitors :)

    You can access the compute instances through the serial console: https://docs.cloud.oracle.com/iaas/Content/Compute/References/serialconsole.htm

    Please follow the instructions in the "To boot into maintenance mode" section

    Regards

  • Phanindra Sajja

    HI Joji,

    By using Page Customization you can hide the analytics section in News Feed UI.

    1) Create a New Sandbox and click on edit Pages

    2) Perform the steps shown in Screenshot.

     

  • Joydeepta Bhattacharjee

    We have created and configured standalone kafka cluster with multi node in a prvisioned vm from Oracle cloud. However , I would still prefer to use Kafka rather than streaming for better performance and visibility

  • Joydeepta Bhattacharjee

    Hi ,

    We finally got rid of event cloud as managed service as this is no more a primary focus . Infact Oracle is selling Oracle streaming service - however we preferred to download and explore confifluence kafa

  • Prateek Parasar
     https://fusionhelp.oracle.com/helpPortal/faces/AtkHelpPortalMain?TopicId=4CAC2FC65A5476FCE05362C3F00AB3AE https://docs.oracle.com/en/cloud/saas/applications-common/18b/oacpr/personalization.html#OACPR2103023
  • Prateek Parasar
     Follow this. Disable Infolets from strucutre inside configuration. https://fga.fa.us1.oraclecloud.com/fscmUI/faces/AtkHelpPortalMain?TopicId=4CAC2FC65A5476FCE05362C3F00AB3AE&_afrLoop=3163683902973368&_afrWindowMode=0&_afrWindowId=null&_adf.ctrl-state=wysp423dq_1&_afrFS=16&_afrMT=screen&_afrMFW=980&_afrMFH=1742&_afrMFDW=414&_afrMFDH=736&_afrMFC=8&_afrMFCI=0&_afrMFM=0&_afrMFR=0&_afrMFG=0&_afrMFS=0&_afrMFO=1
  • Joydeepta Bhattacharjee

    Yes, to connect and SSH to your worker node you have your opc user and password set against in OCI node provisioned.

  • Joydeepta Bhattacharjee

    Have you tried to access through Service name the inter pod communication. Also , bind the Ingress with a domain URL and revert

  • Hassan Ajan

    Hi Karthik,

    I think you need to look at the header X-Forwarded-For or X-Real-IP, they should contain the IP of the client. 

    Check out https://docs.cloud.oracle.com/iaas/Content/Balance/Reference/httpheaders.htm for more details. 

    Thanks,

    Hassan

     

  • Hassan Ajan

    Hi, 

    How did you start the project? did you initialise it like this: 

    fn init --runtime python pythonfn
    
  • John K

    Thanks Ben! I guess I was confused because I was using the SSH command provided but in fact I could login with 

    ssh -i ~/.ssh/id_rsa opc@<my.cloud.ap.address>. Appreciate the response!

  • Ben Haworth

    Hi - presuming you mean log in to your compute instance (perhaps worker node?) via the Console Connection then this prompt for username/password is to be expected. 

    If you are working with the OCE service, unless you have done something very bad to a worker node, you shouldn't need to use the Console Connection and should be able to SSH directly to the IP of the worker node - see here: https://docs.cloud.oracle.com/iaas/Content/ContEng/Tasks/contengconnectingworkernodesusingssh.htm

    The SSH key you uploaded is used to authenticate you against the Console Connection service, which then provides you with a remote session to the Console of the Operating System.  You then need to authenticate against the OS, which is why you are getting a username and password prompt.  If you have not set up a user with local login rights in the OS (or changed/set the OPC user password etc) then you will not be able to log in - at this point the only use for the console connection is by rebooting the instance, you can enter the boot up commands to GRUB, or whatever, to launch maintenance mode and edit the system files to set up a user etc.  More details here:

    https://docs.cloud.oracle.com/iaas/Content/Compute/References/serialconsole.htm#four

    Hope that helps.
    Ben

  • John K

    Thank you kindly Jon-Eric. I'll give this a go today! Very much appreciated.

  • Jon-Eric Eliker

    I understand your frustration.  The Compartment/VCN/Subnet steps are necessary simply because you are working within the Infrastructure service which, by definition, gives you control of the core elements in the environment. I could see a place for some "quickstart" configuration that gives you a basic setup in favor of deploying and testing your code quickly.  Short of that, see the below Terraform code that should give you the basic infrastructure you need for testing Functions like I describe above.  You can use this via Resource Manager in OCI (in the main menu like your original screenshot above) by following these steps below. Note that I assume you are using an administrator account in OCI (which is the case if you are using the first/only account created for you when you started the trial):

    1. Save the Terraform script below as a since file (call it fn_demo.tf for example)
    2. Zip that file (assume you will now have fn_demo.zip)
    3. In OCI Resource Manager, create a new Stack specifying a Name (which will be suggested if you select the zip file first), Description, and attaching the zip file you created here
    4. On the next screen for the Stack, you'll see prompts for the variables I've defined in the Terraform code
      • Tenancy OCID should default to your OCI account so no change needed
      • Change the Compartment name if you'd like. Remember that a Compartment is a management security structure in OCI and doesn't affect network connectivity or interactions among infrastructure that you deploy. All that to say, the name of the Compartment isn't that exciting and relevant at this stage in the work you're doing
      • Also, the policy name is a variable for you to change. Probably not something you need to change (but I did in when testing so I made it a variable)
      • The CIDR range for the network being defined by this script may be something you want to alter. I picked a rather simple 10 address but use 200 in the second octet hopefully to make it easily co-exist with other networks you may have already defined while testing (assuming you would have selected 10.0 or something similar for any networks you already defined). Again, change this if you'd like but keep it at /16 for purposes of other assumptions in the remainder of the script
      • Finally, set the app name to something else if you wish.  For Functions, the application is a collection of functions so the name of a "real" application would probably be more descriptive that "hello-world." Here I am assuming your first app may only contain one function.
    5. Complete the Stack definition then, from the Stack details page, use "Terraform Actions" to plan your code (the default plan name suggested is fine)
    6. Once the Plan is complete, click back to the Stack (look at the breadcrumbs navigation near the top where you see "Job Details" last and click to the stack left of that) and use "apply" from the "Terraform Actions" menu. The default name and "automatically approve" are appropriate choices here as well.

    If all goes as planned, you should find a new VCN under Networking in the OCI main menu.  You will need to choose the new compartment (using the Compartment selector in the lower left on the VCNs page) you created with the script in order to see the new VCN listed.

    Hopefully this is useful should you choose to press ahead testing Oracle Functions. Best wishes!

    Jon-Eric
    ​Mythics, Inc.

    --- code below to copy to a new file ---

    variable "tenancy_ocid" {}
    variable "compartment_name" {
        default = "FnDemo"
    }
    variable "policy_name" {
        default = "FnService"
    }
    variable "vcn_cidr" {
        default = "10.200.0.0/16"
    }
    variable "fn_app_name" {
        default = "hello-world"
    }
    
    resource "oci_identity_compartment" "demo_compartment" {
        compartment_id = "${var.tenancy_ocid}"
        name = "${var.compartment_name}"
        description = "For demonstration of Oracle Functions"
    }
    
    resource "oci_identity_policy" "root_demo_policy" {
        compartment_id = "${oci_identity_compartment.demo_compartment.compartment_id}"
        description = "For Fn Service access to tenancy resources"
        name = "${var.policy_name}"
        statements = [
            "Allow service FaaS to read repos in tenancy"
        ]    
    }
    
    resource "oci_identity_policy" "compartment_demo_policy" {
        compartment_id = "${oci_identity_compartment.demo_compartment.id}"
        description = "For Fn Service access to compartment resources"
        name = "${var.policy_name}"
        statements = [
            "Allow service FaaS to use virtual-network-family in compartment ${oci_identity_compartment.demo_compartment.name}"
        ]    
    }
    
    resource "oci_core_vcn" "demo_vcn" {
        cidr_block = "${var.vcn_cidr}"
        compartment_id = "${oci_identity_compartment.demo_compartment.id}"
        display_name = "Demo VCN"
        dns_label = "demo"
    }
    
    resource "oci_core_internet_gateway" "demo_ig" {
        compartment_id = "${oci_identity_compartment.demo_compartment.id}"
        display_name = "Internet Gateway"
        vcn_id = "${oci_core_vcn.demo_vcn.id}"
    }
    
    resource "oci_core_default_route_table" "demo_route_table" {
        manage_default_resource_id = "${oci_core_vcn.demo_vcn.default_route_table_id}"
        route_rules {
            network_entity_id = "${oci_core_internet_gateway.demo_ig.id}"
            cidr_block = "0.0.0.0/0"
        }
    }
    
    resource "oci_core_subnet" "demo_subnet" {
        cidr_block = "${cidrsubnet(oci_core_vcn.demo_vcn.cidr_block, 8, 1)}"
        compartment_id = "${oci_identity_compartment.demo_compartment.id}"
        display_name = "Public Subnet"
        vcn_id = "${oci_core_vcn.demo_vcn.id}"
        prohibit_public_ip_on_vnic = "false"
    }
    
    resource "oci_functions_application" "demo_app" {
        compartment_id = "${oci_identity_compartment.demo_compartment.id}"
        display_name = "${var.fn_app_name}"
        subnet_ids = [
            "${oci_core_subnet.demo_subnet.id}"
        ]
    }
    
    output "comp_id" {
        value = "Compartment id is ${oci_identity_compartment.demo_compartment.id}"
    }
    

    -- code above to be copied to a new file --

  • Jon-Eric Eliker

    I'm seeing now that the end of my post was somehow lost.  Here is a link for a Functions tutorial that you might find interesting:

    Oracle Functions: Set up, creation, and deployment

    Jon-Eric
    Mythics, Inc.