Jenkins interview questions --
1. How do you handle issues in your worker nodes?
When a worker node faces an issue, I log into the node and inspect the system's health, logs, and resource usage. We use a lightweight Python monitoring script that checks CPU and RAM usage, sending alerts when usage exceeds 80%. Additionally, we’ve implemented EC2 Auto Scaling to automatically add nodes if load remains high.
2. Explain the CI/CD Process
Our CI/CD process starts with checking out the code from the SCM. We then build the application using Maven (for Java), npm (for Node.js), or Android Gradle for Android apps. Next, we run vulnerability scans, perform static code analysis, and store the artifacts in a repository. Finally, we deploy the artifacts to a Kubernetes cluster using Ansible and ArgoCD.
3. How do you install Jenkins and expose it to the external world?
Jenkins is installed on a VM using a package manager. It runs on port 8080 by default. To expose it to the external world,
we open port 8080 in the VM’s security group (e.g., AWS EC2) and access it via the public IP.
Alternatively, we can use tools like ngrok
or configure a reverse proxy using Nginx for custom domain and SSL.
Comments (0)
Post a Comment
Cancel