Containers and Kubernetes

Get Involved. Join the Conversation.

Posts

  • Sayan Malakshinov
    Containers based on Windows15.0
    Topic posted July 31, 2018 by Sayan Malakshinov, tagged Containers, Docker, Kubernetes 
    Title:
    Containers based on Windows
    Content:

    One of our main applications requires IIS with .Net Framework, which is platform-dependent and requires docker host on Windows, but Oracle Cloud Container Service and Oracle Application Container Service currently support Linux hosts only.

    If we try to deploy official docker dotnet-framework image by Microsoft we get error:

    ERROR Failed to pull image microsoft/dotnet-framework-samples:aspnetapp due to error no supported platform found in manifest list
    Error: no supported platform found in manifest list
    

     How can we ask Oracle to add containers based on Windows?

  • Shivin Vijai
    Oracle Container Registry support signed images?14.5
    Topic posted August 2, 2018 by Shivin VijaiSilver Medal: 2,000+ Points, tagged Containers, Docker, Kubernetes, Registry 
    Title:
    Oracle Container Registry support signed images?
    Summary:
    I need to deploy (push and pull) signed images on Kubernetes
    Content:

    As far I know Oracle Container Registry currently do not support signed images. Is it true? Is there any good workarounds for that. What is the gap from a normal kubernetes deployment using a unsigned image?

    I need to have content trust in docker images. Content trust gives me the ability to verify both the integrity and the publisher of all the data received from a registry over any channel.

    I am looking this for a production set.

    Regards

    -Shivin

  • Shivin Vijai
    Can I run Fn on OKE14.3
    Topic posted August 20, 2018 by Shivin VijaiSilver Medal: 2,000+ Points, tagged Containers, Docker, Kubernetes, Tip 
    Title:
    Can I run Fn on OKE
    Content:

    Can I run Fn on OKE?

  • 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
    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 

  • Karthik Murthy
    How to preserve Source IP for LoadBalancer Service OKE45.0
    Topic posted July 17, 2019 by Karthik Murthy, tagged Containers, Kubernetes 
    Title:
    How to preserve Source IP for LoadBalancer Service OKE
    Summary:
    Unable to preserve source IP for a Kubernetes service exposed as type 'LoadBalancer'
    Content:

    I have deployed a backed service and nginx ingress controller as a Load Balancer service as documented in https://docs.cloud.oracle.com/iaas/Content/ContEng/Tasks/contengsettingupingresscontroller.htm 

    I would like to know if there is any way we can preserve source IP on the backed Pod. i.e I expect to see that the source IP of my external client when the request reaches the backend pod via the loadbalancer and nginx ingress controller.

    Any help is greatly appreciated !

    Version:
    12.7
  • 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 

     

  • 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)
    .................
    ....................
    ..........................