Skip to content

Instantly share code, notes, and snippets.

View marcelomrwin's full-sized avatar

Marcelo Daniel Silva Sales marcelomrwin

  • Red Hat
  • Valencia - Spain
View GitHub Profile
  • Change Default response timeout for a specific route:
oc annotate route <route_name> --overwrite haproxy.router.openshift.io/timeout=10s
  • Add a nodeSelector on RC ou DC
oc patch dc|rc <dc_name> -p "spec:                                                                                         
  template:     
---
- name: Prepare instances for OpenShift Deployment on AWS
hosts: ocp*
become: yes
vars:
rhn_username: "{{ lookup('env','RHN_USERNAME') }}"
rhn_password: "{{ lookup('env','RHN_PASSWORD') }}"
rhn_pool: "{{ lookup('env','RHN_SUBSCRIPTION_POOL') }}"
dockerstorage_dev: "/dev/sdb"
@marcelomrwin
marcelomrwin / OpenSSL.md
Created October 6, 2021 21:56 — forked from mohanpedala/OpenSSL.md
OpenSSL Working with SSL Certificates, Private Keys, CSRs and Truststores

Generate a private key and a CSR(Certificate Signing Request )

Use this method if you want to use HTTPS (HTTP over TLS) to secure your Apache HTTP or Nginx web server, and you want to use a Certificate Authority (CA) to issue the SSL certificate. The CSR that is generated can be sent to a CA to request the issuance of a CA-signed SSL certificate. If your CA supports SHA-2, add the -sha256 option to sign the CSR with SHA-2.

Creating a 2048-bit private key (domain.key) and a CSR (domain.csr) from scratch:

openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr

Creating a 2048-bit private key and public key