Containers and Kubernetes

Get Involved. Join the Conversation.

Posts

  • enrique ortiz
    lost ssh keys
    Topic posted September 26, 2019 by enrique ortizRed Ribbon: 250+ Points 
    Title:
    lost ssh keys
    Content:

    hi all 

    we have created a kubernetes cluster with tree nodes , the cluster is created in automatic mode 

    we lost the ssh keys used to create the cluster so we cannot access the nodes , is there a way in order to access the nodes without ssh keys 

    thanks

     

  • Joji Lue
    19C - Hide Analytics on the bottom of the Springboard3
    Topic posted September 22, 2019 by Joji LueBronze Trophy: 5,000+ Points 
    Title:
    19C - Hide Analytics on the bottom of the Springboard
    Summary:
    We need to hide the Analytics section of the springboard
    Content:

    Has anyone tried to hide the Analytics section of the springboard? Kindly share the steps on how to do it.

     

    Thank you,

    Joji

    Version:
    19C
    Image:
  • Ranjans
    cx_Oracle.DatabaseError: DPI-1047 while connecting to...
    Topic posted September 12, 2019 by Ranjans Red Ribbon: 250+ Points, tagged Containers, Docker 
    Title:
    cx_Oracle.DatabaseError: DPI-1047 while connecting to cx_Oracle on docker
    Content:

    Hi ,

    I have written my function in python. When I am trying to invoke the function. I am getting the below error.  I have attached the Dockerfile also. Any suggestions.

     

    fn invoke appname func1

    cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for helpC

     

    Document:
  • Ranjans
    connect to adwc with fn(function)
    Topic posted September 11, 2019 by Ranjans Red Ribbon: 250+ Points, tagged Containers, Docker 
    Title:
    connect to adwc with fn(function)
    Summary:
    connect to adwc with fn (function)
    Content:


    Hi Everyone,

    Can anyone ,please suggest me in the below .
    I wanted to run my python code through oracle serverless computing( through fn function)
    Therefore I am facing challenge in connecting to adwc database with fn.
    In order to connect I need a init image file in python or Dockerfile in python.
    Can anyone suggest me, how to connect to autonomous database using fn .

    Thanks 

     

  • John K
    SSH console access loginAnswered3
    Topic posted September 9, 2019 by John K 
    Title:
    SSH console access login
    Content:

    I'm trying to SSH into my instance using the SSH connection string provided by the console. I uploaded my public key and changed the permission of the private key ($ chmod 600 ~./.ssh/id_rsa) but I'm still being asked for username and password. Any ideas as to what this would be or how I can get past this?

  • John K
    Deploying a basic node app to the cloudAnswered65.0
    Topic posted September 6, 2019 by John KGreen Ribbon: 100+ Points, tagged Containers, Docker, Kubernetes 
    Title:
    Deploying a basic node app to the cloud
    Content:

    Apologies for the basic question but I just signed up for a trial cloud account and want to deploy a simple hello world node app to the cloud. Even Oracle's documentation seems dated as everything I find online references Application Container Cloud which I don't see in my list of trial account applications. Nor do I see anything related to Container Cloud. Does anyone have a tutorial or how-to doc that I could follow to learn how to deploy a simple node app. Thanks in advance for pointing me in the right direction.

    Image:
  • Joydeepta Bhattacharjee
    Kafka broker in Oracle cloud event hub connectivity through...2
    Topic posted August 27, 2019 by Joydeepta BhattacharjeeRed Ribbon: 250+ Points, tagged Containers, Kubernetes 
    Title:
    Kafka broker in Oracle cloud event hub connectivity through bootstrap service
    Summary:
    Microservice to connect a Kafka topic and publish message as part of Oracle event hub cloud
    Content:

    Hi Team ,

    Can any one give me a clear information around connecting a Kafka broker in a cloud event hub. The zookeeper is embedded so not able to validate connector and brokers are active or not . When the service is trying to connect thru a public Internet Url of a Cloud Event Hub - Dedicated service it's timing out

     

  • Ranjans
    unable to invoke the function in oci1
    Topic posted August 22, 2019 by Ranjans Red Ribbon: 250+ Points, tagged Containers, Docker 
    Title:
    unable to invoke the function in oci
    Summary:
    unable to invoke the function in oci
    Content:

    As per Python SDK , when I am importing the config value, the function is not getting invoke and is error out . The function has been built using python .

    The following command is used to invoke the function

    fn invoke  app_py pythonfn

     

    *************************

    import json
    import io
    import oci
    from oci.config import from_file
    import sys
    from fdk import response


    config = from_file(profile_name="DEFAULT")
    print(conf)

    def handler(ctx, data: io.BytesIO=None):


        try:
            body = json.load(data)
    .................
    ....................
    ..........................

  • Raju Addala
    Not able to access a webservice that is exposed as a public...
    Topic posted July 30, 2019 by Raju Addala 
    Title:
    Not able to access a webservice that is exposed as a public service
    Summary:
    Not able to access a webservice that is exposed as a public service
    Content:

    I created a simple node.js rest webservice and deployed in OCI cloud.

    RADDALA-MAC:.kube raddala$ kubectl describe services raju

    Name:                     raju

    Namespace:                default

    Labels:                   <none>

    Annotations:              service.beta.kubernetes.io/oci-load-balancer-shape: 100Mbps

    Selector:                 app=raju

    Type:                     LoadBalancer

    IP:                       10.96.100.35

    LoadBalancer Ingress:     z.y.t.u (I masked the actual address)

    Port:                     raju  3000/TCP

    TargetPort:               3000/TCP

    NodePort:                 raju  32250/TCP

    Endpoints:                <none>

    Session Affinity:         None

    External Traffic Policy:  Cluster

    Events:

      Type    Reason                Age   From                Message

      ----    ------                ----  ----                -------

      Normal  EnsuringLoadBalancer  159m  service-controller  Ensuring load balancer

      Normal  EnsuredLoadBalancer   158m  service-controller  Ensured load balancer

     

    Problem is that I not able to access this external IP address

  • Joydeepta Bhattacharjee
    Pod to Pod communication with service name Should be...15.0
    Topic posted July 20, 2019 by Joydeepta BhattacharjeeRed Ribbon: 250+ Points, tagged Containers, Docker, Kubernetes, Tip 
    Title:
    Pod to Pod communication with service name Should be followed with Ingress Resource to realise a decouple connection
    Summary:
    Instead of accessing IP which changes with deployment I would like to access pod deployment with service created which is not working in OCI OKE setup
    Content:

    kubectl describe services kube-dns --namespace kube-system

     

    Name:              kube-dns
    Namespace:         kube-system
    Labels:            addonmanager.kubernetes.io/mode=Reconcile
                       k8s-app=kube-dns
                       kubernetes.io/cluster-service=true
                       kubernetes.io/name=KubeDNS
    Annotations:       kubectl.kubernetes.io/last-applied-configuration:
                         {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"addonmanager.kubernetes.io/mode":"Reconcile","k8s-app":"kube-d...
    Selector:          k8s-app=kube-dns
    Type:              ClusterIP
    IP:                10.96.5.5
    Port:              dns  53/UDP
    TargetPort:        53/UDP
    Endpoints:         10.244.1.21:53,10.244.1.23:53
    Port:              dns-tcp  53/TCP
    TargetPort:        53/TCP
    Endpoints:         10.244.1.21:53,10.244.1.23:53
    Session Affinity:  None
    Events:            <none>
    [opc@test ~]$

     

    , kubectl describe svc my-api 

    [opc@test ~]$ kubectl describe svc springbootapp-demo-service
    Name:                     springbootapp-demo-service
    Namespace:                default
    Labels:                   <none>
    Annotations:              <none>
    Selector:                 app=app
    Type:                     LoadBalancer
    IP:                       10.96.157.177
    LoadBalancer Ingress:     132.145.235.116
    Port:                     <unset>  80/TCP
    TargetPort:               8035/TCP
    NodePort:                 <unset>  30963/TCP
    Endpoints:                10.244.0.26:8035,10.244.0.27:8035,10.244.0.30:8035 + 1 more...
    Session Affinity:         None
    External Traffic Policy:  Cluster
    Events:                   <none>

     

    Now  when i exec(kubectl exec -it  **Pod) to a pod and wget the other pod by FQDN it's not reached. I also connected a busy-box image to debug the kube-dns networking between pods. 

    Exec to the pod takes to prompt as  kubectl exec -it nodejs-deployment-6bffdcb99c-lf8gn sh and tried to wget below end point dummy but unreachable though IP is looked up.

     wget http://springbootapp-demo-service/demo/test
    Connecting to springbootapp-demo-service(10.96.157.177:8035)

    This has been fixed now by renaming the selector lebel in deployment yml to unique name as they are in default name space