Openshift will have docker UCP ? - docker

hi i am new to openshfit can some one please help me on below
docker Universal Control Plane will be availabe in openshift as well or instead of UCP we are using openshift ?
how i can manage my new application deployed in openshift like ssl certs ?

Docker UCP is a tool for managing Docker Swarm clusters. OpenShift is an entirely different product based on Kubernetes for container management and scheduling.
OpenShift applications ate exposed publicly via routes, https://docs.openshift.org/latest/dev_guide/routes.html. Routes is where you will install you SSL certificates for a specific hostname.

Related

Containerized applications with docker swarm on GCP

I have a project to containerize several applications (Gitlab, Jenkins, Wordpress, Python Flask app...). Currently each application runs on a Compute Engine VM each at GCP. My goal would be to move everything to a cluster (Swarm or Kubernetes).
However I have different questions about Docker Swarm on Google Cloud Platform:
How can I expose my Python application on the outside (HTTP load balancer) as well as the other applications only available in my private VPC ?
From what I've seen on the internet, I have the impression that docker swarm is very little used. Should I go for a kubernetes cluster instead ? (I have good knowledge of Docker/Kubernetes)
It is difficult to find information about Docker Swarm in cloud providers. What would be an architecture with Docker Swarm on GCP?
Thanks for your help.
I'd create a template and from that an instance group for all VM, which shall host the Docker swarm. And a separate instance or instance group for said internal purposes - so that there is a strict separation, which can then be used to route the internal & external traffic accordingly (this would apply in any case). Google Kubernetes Engine is about the same as such an instance group, but Google managed infrastructure. See the tutorial, there's not much difference - except that it better integrates with gcloud & kubectl. While there is no requirement to want or need to maintain the underlying infrastructure, GKE is probably less effort.
What you are basically asking is:
Kubernetes vs. Docker Swarm: What’s the Difference?
Docker Swarm vs Kubernetes: A Helpful Guide for Picking One
Kubernetes vs. Docker: What Does it Really Mean?
Docker Swarm vs. Kubernetes: A Comparison
Kubernetes vs Docker Swarm

How to deploy several docker images to single virtual machine

I have an application which consists of 2 docker containers. Both are small and need to interact with each other quite often through rest api.
How can I deploy both of them to a single Virtial Machine in Google Cloud?
Usually, when creating virtual machine, I get to chose a container image to deploy: Deploy a container image to this VM instance.
I can specify one of my images and get it running in the VM. Can I set multiple images?
You can not deploy multiple containers per VM.
Please consider this limitation when deploying containers on VMs:
1.You can only deploy one container for each VM instance. Consider Google Kubernetes Engine if you need to deploy multiple containers per
VM instance.
2.You can only deploy containers from a public repository or from a private repository at Container Registry. Other private repositories
are currently not supported.
3.You can't map a VM instance's ports to the container's ports (Docker's -p option).
4.You can only use Container-Optimized OS images with this deployment method. You can only use this feature through the Google Cloud
Platform Console or the gcloud command-line tool, not the API.
You can use docker-compose to deploy multi-container applications.
To achieve this on Google Cloud, you'll need:
ssh access to VM
docker and docker compose installed on the VM

How to use a remote docker server from jenkins?

I got 2 servers, 1 Linux 2 AMI with Jenkins running and one RHEL with Docker running.
I would like to configure Jenkins in order to build and deploy an application on the Docker server. If I clone my repository on the Docker server, i'm running docker-compose build then docker-compose up and everything is working fine.
I find some documentation about using a remote docker server with jenkins but it doesn't work. Docker API is already open.
Strictly speaking, you can connect to a remote Docker Daemon by enabling the Remote API over TCP and using the docker client by setting the DOCKER_HOST environment variable. I would also suggest you configure encryption and authentication to have an additional layer of security and if you can restrict it to be only accessible from your Jenkins Slaves.
But as stated on the comment by David Maze, I don't think this is the best approach for deployment of containers as it carries some security risks that can compromise your servers.
I would suggest that if you are planning on running production workloads and you need a full pipeline for managing the lifecycle of your applications running on containers, you research Docker Swarm or Kubernetes as they are better alternatives suited for achieving this.

Deploying docker swarm without using docker machine

Currently I have a bunch of RHEL7 VMs running on RackSpace and want to deploy docker swarm for testing purpose. The Docker Docs only describes the method to deploy docker swarm by using docker machine.
Question:
Since VirtualBox cannot be used in VMs, are any other ways such that I can directly deploy docker swarm on my VMs without using docker machine?
In fact Docker documentation offers you how to set up a swarm cluster 'manually' without using docker-machine: Create a swarm for development
I think that this full step-by-step tutorial might be useful.
It details how to deploy Swarm with a multi-hosts network, without Docker-machine by using consul and suggest two different means for the Swarm agent discovery (static file and token).

Docker application Portability in Openshift

I need clarification on below points related to docker on Openshift:
Is docker supported in openshift origin or online as of now or it will be there in future release of V3? If yes, how does it work?
I have seen there are different docker images available for openshift in docker hub here. How do these work?
Docker is mainly for provisioning application portability, say I already have an application running in my docker installed locally, so how can this be migrated to openshift environment, or, how in openshift docker can images be created?
Is docker supported in openshift origin or online as of now or it will be there in future release of V3? If yes, how does it work?
We just released the V3 repo here so it is in Origin https://github.com/openshift/origin.
I have seen there are different docker images available for openshift in docker hub here. How do these work?
You answered this in the comments, just clarifying here for visibility.
Linux containers, or “Gears”, have always been a core component of OpenShift. Docker is new standard for containerization through the libcontainer project. To quote this great article https://www.openshift.com/blogs/openshift-v3-platform-combines-docker-kubernetes-atomic-and-more:
The OpenShift v3 Cartridge format will adopt the Docker packaging model and enable users to leverage any application component packaged as a Docker image. This will enable developers to tap into the Docker Hub community to both access and share container images to use in OpenShift. Customers will also be able to leverage Red Hat certified container images from both Red Hat and our ISV partners. Our recently launched OpenShift Marketplace will expand to include solutions from both SaaS partners and certified ISV’s.
......
In OpenShift v3, we will be integrating Kubernetes in the OpenShift Broker to drive container orchestration.
Docker is mainly for provisioning application portability, say I already have an application running in my docker installed locally, so how can this be migrated to openshift environment, or, how in openshift docker can images be created?
I'm quoting from the article again, but "The OpenShift v3 Cartridge format will adopt the Docker packaging model and enable users to leverage any application component packaged as a Docker image. This will enable developers to tap into the Docker Hub community to both access and share container images to use in OpenShift"

Resources