openshift-ansible | Install and config an OpenShift 3.x cluster
kandi X-RAY | openshift-ansible Summary
kandi X-RAY | openshift-ansible Summary
This repository contains Ansible roles and playbooks for OpenShift clusters.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set the value for a boolean flag
- Commit changes to semanage
- Disconnect from semanage
- Begin a semanage transaction
- Run AnsibleModule
- Run node discovery
- Return a list of node names
- Check if node is ready
- DEPRECATED
- Deprecated
- Recursive search search
- Deprecated Use include directive
- Process command
- Fix file lines
- Parse value
- Check if two values are equal
- Create a new configuration file
- Update section line
- Run linter
- Check if a boolean value exists
- Set boolean value
- Get the bool value of a boolean
- Find all OpenShift_ansible
openshift-ansible Key Features
openshift-ansible Examples and Code Snippets
cat $LAB/mysql-operator/roles/mysqlbackup/tasks/main.yml
- name: Create ad-hoc mysqlbackup objects
k8s:
state: present
definition: "{{ lookup('template', item.name) | from_yaml }}"
loop:
- name: pvc.yml.j2
- name: job.yml.j2
wh
├── build-scripts
│ └── …
├── Jenkinsfile
├── jobs
│ …
│ └── build
│ └── openshift-scripts
│ ├── Jenkinsfile
│ ├── REA
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
ansible_become=true
ansible_ssh_user=centos
openshift_deployment_type=origin
openshift_release="3.10"
oreg_url=openshift/origin-${component}:v3.10.0
openshift_aws_ami=ami-833d37f9
[masters]
[etcd]
Community Discussions
Trending Discussions on openshift-ansible
QUESTION
I have deployed openshift(okd) 3.11 using : https://github.com/openshift/openshift-ansible/tree/release-3.11 I would want to extend the validity of all the certificates to 5 years or more.
I have tried set following variables in the inventory:
...ANSWER
Answered 2020-Nov-24 at 19:22These certificates are always generated for one year and are automatically rotated. You can force redeployment by redeploying a new CA by using the -e openshift_redeploy_openshift_ca=true
flag as described in the documentation:
Redeploying Node Certificates
By default, node certificates are valid for one year. OKD automatically rotates node certificates when they get close to expiring. If automatic approval is not configured, you must manually approve the certificate signing requests (CSRs).
If you need to redeploy certificates because the CA certificate was changed, you can use the
playbooks/redeploy-certificates.yml
playbook with the-e openshift_redeploy_openshift_ca=true
flag. See Redeploying All Certificates Using the Current OpenShift Container Platform and etcd CA for details. When running this playbook, the CSRs are automatically approved.
As far as I know, since this is an automatic process, you cannot change the validity period to be different from 1 year. Make sure you are using openshift_master_bootstrap_auto_approve=true
to make the renewal automatic.
QUESTION
I am installing Openshift 3.11 version cluster on my Centos 7.8 VMS. The configuration is that there are there are three Centos VMs (one master node + two worker nodes). I have configured my inventory file also and 'prerequisites.yml' playbook also ran successfully. But when I am running the playbook 'deploy_cluster.yml', then it is generating errors as follows ----
...ANSWER
Answered 2020-Jun-23 at 17:41Copied from comments (as this seems to have been the issue):
So it seems that the repoquery is looking for "origin-3.11.0*". What is the output when you run yum search origin-3.11.0*? I am guessing that this will not find anything, check if the correct YUM repositories are attached.
It seems that you are mixing OpenShift versions, you have the 3.9 repository attached but are trying to install 3.11. You'll need to attach the 3.11 repository. I would recommend that you refer to the official documentation for the installation: https://docs.okd.io/3.11/install/index.html
QUESTION
I'm trying to install Openshift Origin with Ansible. I got an issue when execute deploy_cluster.yml and the error is :
...ANSWER
Answered 2020-Feb-18 at 07:44Solved ! Move my environment to higher specifications. I saw some logs show that the resources I use before 1vcpu and RAM 2GB (Master + Infra1, Compute 1) => Recording NodeHasSufficientResources in /var/log/messages
.
Currently, I use 2vcpu and RAM 8GB (Master + Infra 1, Compute 1) and works well !
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openshift-ansible
OpenShift Container Platform
OKD (formerly OpenShift Origin)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page