Openshift 3
Openshift 3
Deployment Options
OpenShift can be deployed in various environments:
● On-Premises: Using bare metal or virtual machines.
● Cloud Providers: AWS, Azure, Google Cloud Platform.
● Hybrid Deployments: Combining on-premises and cloud resources.
Installation Methods
1. Installer-Provisioned Infrastructure (IPI): Automates the provisioning of
infrastructure in cloud environments.
2. User-Provisioned Infrastructure (UPI): Requires manual setup of infrastructure
before installing OpenShift.
Questions:
1. How do you create a secret in OpenShift?
Create a secret using oc create secret generic <secret-name>
--from-literal=<key>=<value>, allowing secure storage of sensitive
information like passwords or tokens.
2. What are labels and annotations?
Labels are key-value pairs used for organizing and selecting resources, while
annotations provide metadata for resources without affecting their functionality.
3. How do you scale an application in OpenShift?
Scale an application using oc scale --replicas=<number>
dc/<deployment-config-name>, adjusting the number of pod replicas based on
demand.
4. What is the difference between DeploymentConfig and Deployment?
DeploymentConfig provides advanced deployment strategies like triggers and
rollback options, while Deployment focuses on simpler Kubernetes-native
deployments without additional features.
5. How do you monitor applications in OpenShift?
Use integrated tools like Prometheus for metrics collection and Grafana for
visualization to monitor application performance and health within OpenShift.