Giter VIP home page Giter VIP logo

azure-openshift's Introduction

RedHat Openshift Origin cluster on Azure

When creating the RedHat Openshift Origin cluster on Azure, you will need an SSH RSA key for access.

SSH Key Generation

  1. Windows - https://www.digitalocean.com/community/tutorials/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps
  2. Linux - https://help.ubuntu.com/community/SSH/OpenSSH/Keys#Generating_RSA_Keys
  3. Mac - https://help.github.com/articles/generating-ssh-keys/#platform-mac

Create the cluster

Create the cluster on the Azure Portal

Create the cluster with powershell

New-AzureRmResourceGroupDeployment -Name <DeploymentName> -ResourceGroupName <RessourceGroupName> -TemplateUri https://raw.githubusercontent.com/derdanu/azure-openshift/master/azuredeploy.json

Create the cluster with azure cli

azure group deployment create <RessourceGroupName> <DeploymentName> --template-uri https://raw.githubusercontent.com/derdanu/azure-openshift/master/azuredeploy.json

Install Openshift Origin with Ansible

After the Azure resources have been deployed by using this ARM template, you must connect via SSH to the jumbox. SSH Agentforwarding is required. The Installation is based on Openshift Ansible. The lastest repository has been checked out on the jumpbox into the directory /opt/openshift-ansible/ and a minimal configuration file was created at /etc/ansible/hosts for Openshift Origin. To start the installation call the following bash script:

Bash or Cygwin Terminal

user@localmachine:~$ eval $(ssh-agent)
user@localmachine:~$ ssh-add
user@localmachine:~$ ssh -A <JumpboxIP>
[adminUsername@jumpbox ~]$ ./openshift-install.sh

Putty on Windows

To login on the jumpbox please refer to the Agent forwarding HowTo for Putty using Pageant.

[adminUsername@jumpbox ~]$ ./openshift-install.sh

Parameters

Input Parameters

Name Type Description
adminUsername String Username for SSH Login and Openshift Webconsole
adminPassword SecureString Password for the Openshift Webconsole
sshKeyData String Public SSH Key for the Virtual Machines
masterDnsName String DNS Prefix for the Openshift Master / Webconsole
image String Operating System to use. RHEL or CentOs
numberOfMasterNodes Integer Number of Openshift master nodes to create (usually either 1 or 3)
masterVMSize String The size of the master nodes
masterVMstorType string premium or standard storage
numberOfinfrasndes Integer Number of Openshift intra nodes to create
infranodeVMSize String The size of the infra nodes
infranodeVMstorType string premium or standard storage
numberOfNodes Integer Number of Openshift Nodes to create
nodeVMSize String The size of each node
nodeVMstorType string premium or standard storage
jumpVMSize String The size of the jumpbox
jumpVMstorType string premium or standard storage

Output Parameters

Name Type Description
openshift Webconsole String URL of the Openshift Webconsole
openshift Jumpbox ssh String SSH String to Login at the Jumpbox
openshift CLI String OC command String to Login
openshift Router Public IP String Router Public IP. Needed if you want to create your own Wildcard DNS

This template deploys a RedHat Openshift Origin cluster on Azure.

azure-openshift's People

Contributors

derdanu avatar simonschwingel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

azure-openshift's Issues

./openshift-install.sh

Hey,

First of all, great job on publishing this "OpenShift on Azure" document!.

I found it very helpful and I have managed to deploy my environment few times with full success!! - Thank You for that

Since yesterday all deployments I'm trying to run ends with the below error on jumbox machine after I run the installation script:

****TASK [etcd_common : Install etcd for etcdctl] **********************************
fatal: [master1]: FAILED! => {"failed": true, "msg": "The conditional check 'o' failed. The error was: error while evaluating conditional (o): 'o' is undefin
ed\n\nThe error appears to have been in '/opt/openshift-ansible/roles/etcd/tasks/main.yml': line 123, column 3, but may\nbe elsewhere in the file depending o
n the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- include_role:\n ^ here\n"}

NO MORE HOSTS LEFT *************************************************************
[WARNING]: Could not create retry file '/opt/openshift-ansible/playbooks/byo/config.retry'. [Errno 13] Permission denied: u'/opt/openshift-
ansible/playbooks/byo/config.retry'

PLAY RECAP *********************************************************************
infranode1 : ok=93 changed=14 unreachable=0 failed=0
localhost : ok=10 changed=0 unreachable=0 failed=0
master1 : ok=154 changed=43 unreachable=0 failed=1
node01 : ok=93 changed=14 unreachable=0 failed=0
node02 : ok=93 changed=14 unreachable=0 failed=0
node03 : ok=93 changed=14 unreachable=0 failed=0****

Any ideas why is it failing ?,

Kind Regards,
Jan Szubiak

changing the DNS hostname locks the web login

I've changed the hosts file to reflect new DNS names.

Here is my hosts file:

Run 'openshift --help' for usage.
[OSEv3:children]
masters
nodes

[OSEv3:vars]
ansible_ssh_user=msghaleb
ansible_become=yes
debug_level=2
deployment_type=origin
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]

openshift_master_cluster_method=native
#openshift_master_cluster_hostname=redhatos.westeurope.cloudapp.azure.com
#openshift_master_cluster_public_hostname=redhatos.westeurope.cloudapp.azure.com

openshift_master_cluster_hostname=console.example.com
openshift_master_cluster_public_hostname=console.example.com

#openshift_master_default_subdomain=52.232.72.184.xip.io
openshift_master_default_subdomain=apps.console.example.com

openshift_use_dnsmasq=False

[masters]
#master[1:1] openshift_public_hostname=redhatos.westeurope.cloudapp.azure.com
master[1:1] openshift_public_hostname=console.example.com

[etcd]
master[1:1]

[nodes]
master[1:1]
node[01:03] openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
infranode[1:1] openshift_node_labels="{'region': 'infra', 'zone': 'default'}"

on my example.com DNS public zone I've created the following:

A --> console --> pointing to the master public IP
A --> apps.console --> pointing to 52.232.72.184
CNAME --> * --> pointing to apps.console

I can't login to the web console, I can only login using the OC command line.

I've rebuild the whole cluster (ARM + Running Playbook) without changing the DNS names in the hosts file, and it worked fine.

am I doing something wrong?

/openshift-install.sh command not found

After the deployment, when I run the ./openshift-install.sh I have the following message :

./openshift-install.sh: line 2: ansible-playbook: command not found
./openshift-install.sh: line 3: oadm: command not found
./openshift-install.sh: line 4: oadm: command not found

Thanks

Error in Ansible-script

After deployed VMs on Azure, at master node. Run./openshift-install.sh
The following error message has shown.


 ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude

The error appears to have been in '/opt/openshift-ansible/playbooks/byo/openshift-cluster/config.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- include: ../../common/openshift-cluster/config.yml
  ^ here

There is some issue on ansible playbook.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.