DO280
1. Installation - Ansible inventory file & vars
[workstations]
[nfs]
[masters]
[etcd]
[nodes]
openshift_node_labels # e.g. "{'region':'infra', 'node-role.kubernetes.io/compute':'true'}"
[OSEv3:children]
[nodes:vars]
# pre-installation vars
registry_local # registry.lab.example.com
use_overlay_driver # true
insecure_registry # false
run_docker_offline # true
docker_storage_device # /dev/vdb
[OSEv3:vars]
# general vars
openshift_deployment_type # openshift-enterprise
openshift_release # v3.9
openshift_image_tag # v3.9.14
openshift_disable_check # disk_availability,docker_storage,memory_availability
# networking
os_firewall_use_firewalld # true
openshift_master_api_port # 443
openshift_master_console_port # 443
openshift_master_default_subdomain # apps.lab.example.com
# authentication
openshift_master_identity_providers # [{'name':'htpasswd_auth', 'login':'true', 'challenge':'true',
'kind':'HTPasswdPasswordIdentityProvider','filename':'/etc/origin/master/htpasswd'}]
openshift_master_htpasswd_users # {'user':'<<HASH>>'}
# openssl passwd -apr1 <PASSWORD> or htpasswd -nbm <USER> <PASSWORD>
# nfs
openshift_enable_unsupported_configurations # true
openshift_hosted_registry_storage_kind # nfs
openshift_hosted_registry_storage_access_modes # ReadWriteMany
openshift_hosted_registry_storage_nfs_directory # /exports
openshift_hosted_registry_storage_nfs_options # "*(rw,root_squash)"
openshift_hosted_registry_storage_volume_name # registry
openshift_hosted_registry_storage_volume_size # 40Gi
# etcd
openshift_hosted_etcd_storage_kind # nfs
openshift_hosted_etcd_storage_access_modes # ["ReadWriteOnce"]
openshift_hosted_etcd_storage_nfs_directory # /exports
openshift_hosted_etcd_storage_nfs_options # "*(rw,root_squash,sync,no_wdelay)"
openshift_hosted_etcd_storage_volume_name # etcd-vol2
openshift_hosted_etcd_storage_volume_size # 1G
openshift_hosted_etcd_storage_labels # {'storage':'etcd'}
# disconnected installation
oreg_url # registry.lab.example.com/openshift3/ose-${component}:${version}
openshift_examples_modify_imagestreams # true
openshift_docker_additional_registries # registry.lab.example.com
openshift_docker_blocked_registries # registry.lab.example.com,docker.io
# image prefixes
openshift_web_console_prefix # registry.lab.example.com/openshift3/ose-
openshift_cockpit_deployer_prefix # 'registry.lab.example.com/openshift3'
openshift_service_catalog_image_prefix # registry.lab.example.com/openshift3/ose-
openshift_service_broker_prefix # registry.lab.example.com/openshift3/ose-
openshift_service_broker_image_prefix # registry.lab.example.com/openshift3/ose-
openshift_service_broker_etcd_image_prefix # registry.lab.example.com/rhel7
# metrics
openshift_metrics_install_metrics # true2. Installation process
3. Post-installation process
4. Creating a route
a/ Generate private key
b/ Generate CSR (request)
c/ Generate certificate
d/ Create secure edge-terminated route
5. ImageStreams
6. Common problems
7. Secrets
8. User accounts, access
a/ Remove capability to create projects for all regular users
b/ Associate user with secure project
c/ Pass environment variable to the new app
d/ Failed deployment because of the default security
e/ Use & update deployment with the new service account
9. Persistent volume
10. Controlling scheduling & scaling
a/ Disable scheduling on node2
b/ Delete/drain all pods on node2
c/ Load Docker image locally
d/ Tag local image ID
e/ Login to OpenShift internal image registry
11. Metrics subsystem
a/ Verify images required by metrics
b/ Check NFS
c/ Create PV for NFS share
d/ Add to Ansible inventory file
e/ Run Ansible, verify if it's OK
f/ Top command as admin
12. Limits
13. Readiness/liveness
14. FAQs
a/ Import the template into OpenShift
b/ Import the Docker image to OpenShift
c/ Turn service into NodePort
d/ Access shell inside the pod
e/ Export resource to YAML
f/ Configure router to handle wildcard routes
g/ Autocomplete
h/ Troubleshooting policies
i/ Security Context Constraints (SCCs)
j/ ConfigMap
k/ RBAC table
l/ Autoscale pods
m/ Tag images
n/ Docker import vs Docker load
o/ OpenShift output vs export
p/ A/B routing
q/ Link secret with service account
r/ Process template into a list of resources
s/ Examine pod contents
t/ Delete environment variable
u/ Using secrets with ENV & Volumes
v/ Turn off automatic triggers
w/ Allow Jenkins to build & deploy the app
x/ Generate values in templates
Last updated