<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mayur Waghmode on Medium]]></title>
        <description><![CDATA[Stories by Mayur Waghmode on Medium]]></description>
        <link>https://medium.com/@mayurwaghmode?source=rss-af20cf42abc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fS-u5Q-OSLqSNFs4wbTa1Q.jpeg</url>
            <title>Stories by Mayur Waghmode on Medium</title>
            <link>https://medium.com/@mayurwaghmode?source=rss-af20cf42abc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:17:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mayurwaghmode/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Secure Web Application on AWS using IAM, VPC, EC2, and CloudWatch (Hands-On Project)]]></title>
            <link>https://awstip.com/building-a-secure-web-application-on-aws-using-iam-vpc-ec2-and-cloudwatch-hands-on-project-8c2d580110ee?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c2d580110ee</guid>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 06:46:53 GMT</pubDate>
            <atom:updated>2026-07-14T09:52:05.594Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Learning AWS becomes significantly easier when concepts are applied in real-world scenarios instead of isolated theory.</p><p>In this hands-on project, we will build a <strong>secure, production-style AWS infrastructure from scratch</strong> using core services such as IAM, VPC, EC2, and CloudWatch. The goal is not just deployment, but to understand how each component interacts within a cloud-native architecture.</p><p>This project is beginner-friendly while still aligning with real DevOps and cloud engineering practices.</p><h3>Who This Project Is For</h3><p>This guide is ideal for:</p><ul><li>AWS beginners</li><li>DevOps engineers</li><li>Cloud engineers</li><li>Students preparing for AWS certifications</li></ul><h3>What You Will Learn</h3><p>By the end of this project, you will understand:</p><ul><li>AWS Regions &amp; Availability Zones</li><li>IAM (Identity and Access Management)</li><li>VPC (Virtual Private Cloud)</li><li>Subnets (Public &amp; Private)</li><li>Internet Gateway &amp; Route Tables</li><li>Security Groups</li><li>EC2 Instance deployment</li><li>Basic web hosting using Nginx</li><li>CloudWatch logging &amp; monitoring</li></ul><h3>What We Are Building</h3><p>We will deploy a simple web application on AWS with a secure architecture.</p><h3>Core Components</h3><ul><li>IAM-based access control</li><li>Custom VPC for network isolation</li><li>Public &amp; private subnets</li><li>EC2 instance hosting a web server</li><li>Nginx for web serving</li><li>CloudWatch for centralized logging</li></ul><p>This architecture reflects a <strong>standard foundational AWS deployment model</strong> used in real-world systems.</p><h3>Architecture Diagram</h3><pre>Users<br>  ↓<br>Internet<br>  ↓<br>Internet Gateway<br>  ↓<br>Public Subnet (10.0.1.0/24)<br>  ↓<br>EC2 Instance (Nginx Web Server)<br>  ↓<br>CloudWatch Logs (Monitoring Layer)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qllCjTc660E4W8HnyE1l2A.png" /></figure><h3>Prerequisites</h3><p>Before starting, make sure you have:</p><ul><li>AWS Account</li><li>Basic Linux knowledge</li><li>SSH client</li><li>Basic understanding of networking</li></ul><p>Official AWS documentation links:</p><ul><li><a href="https://docs.aws.amazon.com/iam/?utm_source=chatgpt.com">IAM Documentation</a></li><li><a href="https://docs.aws.amazon.com/vpc/?utm_source=chatgpt.com">VPC Documentation</a></li><li><a href="https://docs.aws.amazon.com/ec2/?utm_source=chatgpt.com">EC2 Documentation</a></li><li><a href="https://docs.aws.amazon.com/cloudwatch/">CloudWatch Documentation</a></li></ul><h3>Step 0: Understanding the Architecture</h3><p>Before implementation, it is important to understand service interaction:</p><ul><li><strong>IAM</strong> → Controls access and permissions</li><li><strong>VPC</strong> → Provides an isolated networking environment</li><li><strong>EC2</strong> → Hosts the application</li><li><strong>CloudWatch</strong> → Collects and visualizes logs</li></ul><h3>Why this architecture matters</h3><p>It ensures:</p><ul><li>Security through isolation and IAM policies</li><li>Scalability for future expansion</li><li>Reliability through managed AWS services</li></ul><h3>Step 1: Create IAM Users and Roles</h3><p>First, we will configure secure access to AWS.</p><p>Go to:<br>AWS Console → IAM</p><p>Create:</p><ul><li>Admin User</li><li>EC2 Role</li></ul><p>Best practices:</p><ul><li>Enable MFA</li><li>Avoid using the root user for daily work</li><li>Use the least privilege principle</li></ul><p>Policies you can use:</p><ul><li>AdministratorAccess</li><li>CloudWatchAgentServerPolicy</li></ul><p>IAM helps manage:</p><ul><li>Authentication</li><li>Authorization</li><li>Access control</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pkTJg3Pcn4EuvnhqNXahg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xA0EzHl8f7d5FWtetMNCWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uz0lctqaYhI2MzX0mgWNOw.png" /></figure><h3>Step 2: Create Custom VPC</h3><p>Now, let us create our network.</p><p>Go to:<br>AWS Console → VPC</p><p>Create VPC with CIDR block:</p><pre>10.0.0.0/16</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cseo5Nct3yCv-m_xQbSuGw.png" /></figure><p>Why custom VPC?</p><p>Because it provides better control over:</p><ul><li>Network configuration</li><li>Security</li><li>Routing</li></ul><h3>Step 3: Create Public and Private Subnets</h3><p>Now create two subnets.</p><p>Public subnet:</p><pre>10.0.1.0/24</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ORWgbR5gYrBN1zzjkfOJw.png" /></figure><p>Private subnet:</p><pre>10.0.2.0/24</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfVQW-8IzEpG1bHQMpMwnA.png" /></figure><p>Public subnet will host internet-facing resources.</p><p>Private subnet is used for internal resources.</p><p>This is standard production architecture.</p><h3>Step 4: Create Internet Gateway</h3><p>Now, create an Internet Gateway and attach it to the VPC.</p><p>Why do we need an Internet Gateway?</p><p>Without it, resources inside the public subnet cannot communicate with the internet.</p><p>Think of Internet Gateway as the entry and exit point for internet traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F1b4nImxmzEzqNZk4oaf9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rozQ80g6coljdJuWEXmSZA.png" /></figure><h3>Step 5: Configure Route Tables</h3><p>Now configure routing.</p><p>Add route:</p><pre>0.0.0.0/0 → Internet Gateway</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKWmKNhkAgkhWahLHpjM6Q.png" /></figure><p>Associate this route table with the public subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ovv6P5MLjDwpDGqBwk9ZTg.png" /></figure><p>This allows the public subnet to access the internet</p><h3>Step 6: Configure Security Groups</h3><p>Security Groups act as virtual firewalls.</p><p>Create a security group for EC2.</p><p>Inbound rules:</p><ul><li>SSH (22)</li><li>HTTP (80)</li><li>HTTPS (443)</li></ul><p>Important:<br>Restrict SSH access to your IP.</p><p>To Know your ip address</p><pre>curl -4 ifconfig.me</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSYIg1HurVo39fmORUClrA.png" /></figure><p>Never open SSH to the entire internet in production environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSYlFh9Uha5MMNzQ7lf_aw.png" /></figure><h3>Step 7: Launch EC2 Instance</h3><p>Go to:<br>AWS Console → EC2 → Launch Instance</p><p>Configuration:</p><ul><li>Ubuntu AMI</li><li>t2.micro</li><li>Public Subnet</li><li>Attach Security Group</li></ul><p>Create a key pair and download the PEM file.</p><p>This key will be used for SSH access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OS1BSkZ9thj3uZgT0ewQtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4S3sABjIEWINIE6dF__wQ.png" /></figure><h3>Step 8: Connect to EC2</h3><p>Use SSH to connect.</p><pre>ssh -i aws-key.pem ubuntu@&lt;public-ip&gt;</pre><p>If the connection succeeds, your EC2 is ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*umKi_FvCfMrKOxP4R4wETg.png" /></figure><h3>Step 9: Install Nginx</h3><p>Update packages:</p><pre>sudo apt update</pre><p>Install Nginx:</p><pre>sudo apt install nginx -y</pre><p>Check status:</p><pre>systemctl status nginx</pre><p>Open browser:</p><pre>http://&lt;EC2-Public-IP&gt;</pre><p>You should see Nginx welcome page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3XPkzLHy31qkla2JsVfRrw.png" /></figure><h3>Step 10: Deploy Application</h3><p>Now replace the default Nginx page with the sample application.</p><p>Example:</p><pre>&lt;h1&gt;Hello from AWS EC2&lt;/h1&gt;</pre><p>Path:</p><pre>/var/www/html/index.html</pre><p>Your application is now live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yno24R42zGlOSoIQniVW1g.png" /></figure><h3>Step 11: Flask Application with CloudWatch Logging</h3><p>Before jumping into implementation, let’s understand the architecture.</p><h3>📌 Flow of the System</h3><pre>Flask Application<br>        ↓<br>Local Log File (/var/log/myapp/app.log)<br>        ↓<br>CloudWatch Agent<br>        ↓<br>AWS CloudWatch Logs<br>        ↓<br>Monitoring &amp; Observability Dashboard</pre><h3>🔍 Architecture Explanation</h3><ul><li><strong>Flask Application</strong> generates logs for every request.</li><li>Logs are written to a <strong>local file system</strong>.</li><li>The <strong>CloudWatch Agent</strong> continuously monitors this file.</li><li>Logs are pushed to <strong>AWS CloudWatch Logs</strong> in real time.</li><li>CloudWatch provides visualization, filtering, and alerting capabilities.</li></ul><h3>🐍 Install Flask</h3><p>We start by installing Flask using pip:</p><pre>pip3 install flask</pre><h3>📁 Create Log Directory</h3><p>We create a dedicated directory to store application logs.</p><pre>sudo mkdir -p /var/log/myapp<br>sudo touch /var/log/myapp/app.log<br>sudo chmod 644 /var/log/myapp/app.log</pre><h3>🧑‍💻 Create Flask Application (Using cat)</h3><p>Instead of using an editornano, we directly create the file using cat.</p><pre>cat &gt; app.py &lt;&lt;EOF<br>from flask import Flask<br>import logging<br>import os<br>app = Flask(__name__)<br>os.makedirs(&#39;/var/log/myapp&#39;, exist_ok=True)<br>logging.basicConfig(<br>    filename=&#39;/var/log/myapp/app.log&#39;,<br>    level=logging.INFO,<br>    format=&#39;%(asctime)s %(levelname)s %(message)s&#39;<br>)<br>@app.route(&#39;/&#39;)<br>def home():<br>    logging.info(&quot;Homepage accessed&quot;)<br>    return &quot;&quot;&quot;<br>    &lt;h1&gt;Hello from AWS Flask App&lt;/h1&gt;<br>    &lt;p&gt;CloudWatch logging enabled&lt;/p&gt;<br>    &quot;&quot;&quot;<br>@app.route(&#39;/health&#39;)<br>def health():<br>    logging.info(&quot;Health endpoint called&quot;)<br>    return {&quot;status&quot;: &quot;healthy&quot;}<br>if __name__ == &#39;__main__&#39;:<br>    app.run(host=&#39;0.0.0.0&#39;, port=5000)<br>EOF</pre><h3>▶️ Run Flask Application</h3><p>Start the application:</p><pre>python3 app.py</pre><p>Test endpoints:</p><pre>curl http://localhost:5000<br>curl http://localhost:5000/health</pre><h3>☁️ Step 12: CloudWatch Logging Setup</h3><p>Now we integrate <strong>AWS CloudWatch Logs</strong> to collect and monitor application logs in real time.</p><p>CloudWatch enables:</p><ul><li>Centralized logging across systems</li><li>Real-time monitoring</li><li>Faster debugging and troubleshooting</li><li>Better visibility into application behavior</li></ul><h3>🔧 Install CloudWatch Agent</h3><p>Install the CloudWatch agent package:</p><pre>sudo apt install amazon-cloudwatch-agent -y</pre><h3>⚙️ Configure CloudWatch Agent (Using cat)</h3><p>We configure the agent to collect logs from our Flask log file.</p><pre>sudo mkdir -p /opt/aws/amazon-cloudwatch-agent/bin/</pre><pre>cat &gt; /opt/aws/amazon-cloudwatch-agent/bin/config.json &lt;&lt;EOF<br>{<br>  &quot;agent&quot;: {<br>    &quot;run_as_user&quot;: &quot;root&quot;<br>  },<br>  &quot;logs&quot;: {<br>    &quot;logs_collected&quot;: {<br>      &quot;files&quot;: {<br>        &quot;collect_list&quot;: [<br>          {<br>            &quot;file_path&quot;: &quot;/var/log/myapp/app.log&quot;,<br>            &quot;log_group_name&quot;: &quot;aws-demo-app-logs&quot;,<br>            &quot;log_stream_name&quot;: &quot;{instance_id}&quot;<br>          }<br>        ]<br>      }<br>    }<br>  }<br>}<br>EOF</pre><h3>🚀 Start CloudWatch Agent</h3><p>We now start the agent and load the configuration:</p><pre>sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl \<br>-a fetch-config \<br>-m ec2 \<br>-c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json \<br>-s</pre><h3>📊 Viewing Logs in CloudWatch</h3><p>Once the setup is complete, navigate to:</p><pre>CloudWatch → Logs → Log Groups → aws-demo-app-logs</pre><p>Inside CloudWatch, you will see:</p><ul><li>Live application logs</li><li>Log streams are created automatically</li><li>Real-time ingestion of Flask logs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KMUw7w7KoZrg6uvFdD-ztw.png" /></figure><h3>🔐 IAM Permissions Required</h3><p>To allow CloudWatch Agent to publish logs, attach the following IAM policy:</p><ul><li><strong>CloudWatchAgentServerPolicy</strong></li></ul><p>This policy provides permissions for:</p><ul><li>Creating log groups</li><li>Creating log streams</li><li>Publishing log events</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eefrlqRQHbS8XNY_qlZK4w.png" /></figure><h3>🎯 Conclusion</h3><p>With this setup, we successfully built a <strong>production-style logging pipeline</strong> using Flask and AWS CloudWatch.</p><h3>What we achieved:</h3><ul><li>Flask application generating logs</li><li>Local file-based logging system</li><li>CloudWatch Agent is collecting logs</li><li>Real-time log streaming into AWS CloudWatch</li></ul><h3>Final Output</h3><p>At this point, we have successfully built:</p><ul><li>Secure IAM setup</li><li>Custom VPC</li><li>Public subnet</li><li>EC2-hosted application</li><li>S3 integration</li><li>Monitoring setup</li></ul><p>This project gives a strong understanding of AWS core services.</p><h3>Troubleshooting Guide</h3><p>Here are common issues you may face during implementation.</p><h3>Issue 1: Access Denied</h3><p>Error:<br>AccessDenied</p><p>Reason:<br>IAM permissions are missing.</p><p>Fix:<br>Check attached policies and IAM permissions.</p><h3>Issue 2: EC2 Not Reachable</h3><p>Possible reasons:</p><ul><li>Internet Gateway missing</li><li>Route Table issue</li><li>Security Group issue</li></ul><p>Check networking components carefully.</p><h3>Issue 3: SSH Timeout</h3><p>Possible reasons:</p><ul><li>Port 22 blocked</li><li>Wrong IP allowed</li><li>Wrong PEM file</li></ul><p>Checklist:</p><ul><li>Security Group</li><li>Public IP</li><li>PEM file permissions</li></ul><h3>Issue 4: Nginx Not Loading</h3><p>Check:</p><ul><li>Nginx service status</li><li>Port 80</li><li>Security Group</li></ul><p>Command:</p><pre>systemctl status nginx</pre><h3>Issue 5: Flask App Not Reachable on Port 5000</h3><p>If Flask runs inside EC2 but is not accessible from a browser:</p><pre>curl localhost:5000</pre><p>Works, but:</p><pre>http://&lt;EC2-Public-IP&gt;:5000</pre><p>Fails.</p><h3>Fix:</h3><ul><li>Open <strong>Port 5000</strong> in the Security Group inbound rules</li><li>Ensure Flask runs on all interfaces:</li></ul><pre>app.run(host=&#39;0.0.0.0&#39;, port=5000)</pre><p>Check port:</p><pre>sudo netstat -tulpn | grep 5000</pre><h3>Issue 6: Unable to Download Packages in EC2</h3><p>If commands like the ones below fail:</p><pre>sudo apt update<br>pip3 install flask</pre><p>Possible reasons:</p><ul><li>Internet Gateway missing</li><li>Route table misconfigured</li><li>Outbound rules blocked</li><li>No Public IP</li></ul><h3>Fix:</h3><p>Check the route table contains:</p><pre>0.0.0.0/0 → Internet Gateway</pre><p>Verify Security Group outbound rule:</p><ul><li>All Traffic → 0.0.0.0/0</li></ul><p>Test internet:</p><pre>ping google.com</pre><p>If this fails, your EC2 instance lacks outbound internet access.</p><h3>Conclusion</h3><p>This project provides a strong foundation in AWS.</p><p>By completing this project, you now understand how core AWS services work together to build secure cloud infrastructure.</p><p>Once comfortable with this setup, you can explore advanced AWS services like:</p><ul><li>Load Balancer</li><li>Auto Scaling</li><li>RDS</li><li>Route 53</li><li>Terraform</li></ul><p>Happy Learning 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c2d580110ee" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/building-a-secure-web-application-on-aws-using-iam-vpc-ec2-and-cloudwatch-hands-on-project-8c2d580110ee">Building a Secure Web Application on AWS using IAM, VPC, EC2, and CloudWatch (Hands-On Project)</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Argo CD on Power]]></title>
            <link>https://medium.com/@mayurwaghmode/argocd-on-power-8885ef70a3f4?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8885ef70a3f4</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ibm-power-systems]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[argo-cd]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 09:58:22 GMT</pubDate>
            <atom:updated>2022-10-19T10:14:35.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*cVy7yt6MZs-fJ0VY.png" /></figure><p><a href="https://argo-cd.readthedocs.io/en/stable/"><strong>Argo CD</strong></a> is a pull-based k8s-native continuous deployment(CD) tool. It automates the deployment of Kubernetes resources defined in a repository by cloning the source and applying the relevant manifests to the target cluster. Argo CD has a controller that ensures the live or current state of the target Kubernetes cluster matches the desired state in the source repository. Argo CD is completely supported on IBM Power from <a href="https://github.com/argoproj/argo-cd/releases/tag/v2.4.14">v2.4.14</a>.</p><p>In this tutorial, we will set up Argo CD on the IBM Power Kubernetes cluster and synchronize resources with our GitHub repository.</p><h3>Pre-requisites:</h3><ul><li><strong>IBM Power Openshift cluster</strong></li></ul><p>You can deploy a Red Hat OpenShift cluster on IBM Power Systems Virtual Servers using the steps in this article: <a href="https://developer.ibm.com/tutorials/install-ocp-on-power-vs/?mhsrc=ibmsearch_a&amp;mhq=install%20ocp%20on%20powervs">https://developer.ibm.com/components/ibm-power/tutorials/install-ocp-on-power-vs/</a></p><h4>Step 0: Install Argo CD</h4><pre>$ kubectl create namespace argocd </pre><pre>$ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml</pre><h4>Step 1: Download Argo CD CLI</h4><pre>$ wget <a href="https://github.com/argoproj/argo-cd/releases/download/v2.4.15/argocd-linux-ppc64le">https://github.com/argoproj/argo-cd/releases/download/v2.4.15/argocd-linux-ppc64le</a></pre><pre>$ chmod u+x argocd-linux-ppc64le</pre><pre>$ mv argocd-linux-ppc64le /usr/local/bin/argocd</pre><pre>$ argocd version</pre><h4>Step 2: Access the Argo CD API Server</h4><p>By default, the Argo CD API server is not exposed to an external IP. To access the API server, we will do port forwarding of the argocd-server service on the 8080 port.</p><pre>$ kubectl port-forward svc/argocd-server -n argocd 8080:443 --address localhost,&lt;Public_IP_of_CLuster_API&gt;</pre><p>Now, we can see the Argo CD UI Page on http://&lt;Public_IP_of_CLuster_API&gt;:8080</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7u5Nql2ZPcQ0uKIpVPghg.png" /></figure><h4>Step 3: Login to Argo CD from UI and CLI</h4><p>The initial password for the admin account is auto-generated and stored as clear text in the field password in a secret named argocd-initial-admin-secret in your Argo CD installation namespace. You can simply retrieve this password using</p><pre>$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath=&quot;{.data.password}&quot; | base64 -d; echo</pre><p>Using the username <strong>admin</strong> and the password from above, login to Argo CD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LP3UGIJh-Q2XevrTlcyi9g.png" /></figure><p>This is the UI page of Argo CD after logging in</p><h4>Login from CLI</h4><p>For logging from the CLI, run the below command:</p><pre>$ argocd login &lt;Public_IP_of_CLuster_API&gt;:8080</pre><p>After login, you can run many commands like :</p><p><strong>argocd cluster list</strong> → To check the cluster to which Argo CD is connected with</p><p><strong>argocd app list</strong> → To check all the running applications</p><p><strong>argocd repo list</strong> → To check all Git or Helm repositories to which Argo CD is connected with</p><p><strong>argocd proj list</strong> → To list down all the projects created in Argo CD</p><h4>Step 4: Create an Application From Git Repository</h4><p>We are going to use a simple demo application present <a href="https://github.com/mayurwaghmode/argocd-demo">here</a> to demonstrate how Argo CD works on IBM Power.</p><p>Creating Apps via CLI</p><p>Create the example demo-app application with the following command:</p><pre>$ argocd app create demo-app --repo <a href="https://github.com/mayurwaghmode/argocd-demo.git">https://github.com/mayurwaghmode/argocd-demo.git</a> --path simple-app --dest-server <a href="https://kubernetes.default.svc/">https://kubernetes.default.svc</a> --dest-namespace default</pre><h4>Step 5: Sync (Deploy) the Application</h4><p>Syncing via CLI</p><pre>$ argocd app get demo-app</pre><pre>Name:               demo-app<br>Project:            default<br>Server:             <a href="https://kubernetes.default.svc/">https://kubernetes.default.svc</a><br>Namespace:          default<br>URL:                <a href="https://9.46.199.51:8080/applications/demo-app">https://9.46.199.51:8080/applications/demo-app</a><br>Repo:               <a href="https://github.com/mayurwaghmode/argocd-demo.git">https://github.com/mayurwaghmode/argocd-demo.git</a><br>Target:<br>Path:               simple-app<br>SyncWindow:         Sync Allowed<br>Sync Policy:        &lt;none&gt;<br>Sync Status:        OutOfSync from  (145e931)<br>Health Status:      Missing</pre><pre>GROUP  KIND        NAMESPACE  NAME           STATUS     HEALTH   HOOK  MESSAGE<br>       Service     default    myapp-service  OutOfSync  Missing<br>apps   Deployment  default    myapp          OutOfSync  Missing</pre><p>The application status is initially in OutOfSync state since the application has yet to be deployed, and no Kubernetes resources have been created. To sync (deploy) the application, run:</p><pre>$ argocd app sync demo-app</pre><p>This command retrieves the manifests from the repository and performs a kubectl apply of the manifests. The demo-app application is now running and you can now view its resource components, logs, events, and assessed health status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yk1YZ1V1Y1Zfh3C1sWW2_g.png" /></figure><p>The <strong>Synced</strong> and <strong>Healthy</strong> status signifies that all the resources that should be applied have been created in the cluster and that they are running successfully.</p><p>That’s all folks! Thanks for reading. Hope this tutorial was helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8885ef70a3f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building multi-arch images using self-hosted runners on CircleCI]]></title>
            <link>https://medium.com/@mayurwaghmode/building-multi-arch-images-using-self-hosted-runners-on-circleci-957c6c70091c?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/957c6c70091c</guid>
            <category><![CDATA[buildah]]></category>
            <category><![CDATA[multiarch]]></category>
            <category><![CDATA[ibm-power-systems]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[circleci]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 11:03:26 GMT</pubDate>
            <atom:updated>2022-08-11T11:27:50.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*voAByXtWYcd5AcOK29aKdA.png" /></figure><p>CircleCI is the Continuous integration and continuous delivery (CI/CD) platform that helps the development teams to release code rapidly and automate the build, test, and deploy. After repositories on GitHub or Bitbucket are authorized and added as a project to circleci.com, every code triggers CircleCI jobs.</p><p>CircleCI offers several execution environments: Docker, Linux VM (virtual machine), macOS, Windows, GPU, and Arm. Each job defined in your project configuration is run in a separate execution environment, either a Docker container or a virtual machine. If you need a different operating system or require a specific hardware configuration, you can host your own runners. CircleCI self-hosted runner enables you to use your own infrastructure for running jobs. This allows us to build and test on a wider variety of architectures, as well as have additional control over the environment. Currently, CircleCI supports self-hosted runners on the platforms mentioned <a href="https://circleci.com/docs/runner-supported-platforms#supported">here</a>.</p><p>In this tutorial, we will see how to build multi-arch images by using self-hosted runners in CircleCI. Since ppc64le self-hosted runners are not supported, we will use a workaround to SSH into the ppc64le machine from the self-hosted x86 runner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycSEpue2nE489IiCe1Pijw.png" /></figure><h3>Pre-requisites:</h3><ul><li><strong>A user account on </strong><a href="https://github.com/"><strong>GitHub</strong></a></li><li><strong>x86 VM for adding a self-hosted runner to the CircleCI</strong></li><li><strong>ppc64le VM for executing the CircleCI job</strong></li></ul><p>You can use the <a href="https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started">PowerVS service at IBM Cloud</a> or <a href="https://openpower.ic.unicamp.br/minicloud/">Minicloud</a> to get your ppc64le virtual machine. This example uses both centos 8 VMs.</p><ul><li><strong>Install Podman and Buildah on x86 and ppc64le VM</strong></li></ul><pre>sudo yum -y install podman buildah</pre><h4><strong>Step 0: Create accounts on the basic services required</strong></h4><p>We are using <a href="https://github.com/">GitHub</a> to host the source code, <a href="https://circleci.com/">CircleCI</a> as our CI tool, and <a href="https://quay.io/">Quay.io</a> to host our multi-arch image, so if you want to follow the steps described here, you must have an account on each service.</p><h4><strong>Step 1: Setup the Quay repository with a new Robot account</strong></h4><p>Create a repository on <a href="https://quay.io/repository/">Quay.io</a> and add a <a href="https://docs.quay.io/glossary/robot-accounts.html#:~:text=Adding%20a%20robot%20account,of%20the%20user%20or%20organiaztion.">Robot account</a> to it. A robot account will be useful to pull/push your multi-arch images from/to the container registry (ensure you set the <strong>write</strong> permission to your robot, like the picture below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*P4n2iW58Kt4X1Msp.jpeg" /></figure><h4><strong>Step 2: </strong>Generate SSH key</h4><p>Create SSH key pair if it doesn’t exist by using the following steps on x86 VM.</p><pre>cd ~/.ssh</pre><pre>ssh-keygen -o -t rsa</pre><p>Press Enter to complete with the default configurations, we will leave that passphrase empty for now but, you can use it to add extra security to your key.</p><p>When you type ls you should find two files: id_rsa and id_rsa.pub.</p><p>id_rsa has the private key while id_rsa.pub has the public key.</p><h4>Step 3: Add public ssh key to the authorized_keys file of a ppc64le VM</h4><p>First view/copy the contents of your recently generated public key id_rsa.pub on the x86 machine. The public ssh key begins with &quot;ssh-rsa&quot; and ends with your email address:</p><pre>cat ~/.ssh/id_rsa.pub</pre><p>Login to your ppc64le VM and editauthorized_keys file by putting the contents of your public key below any other keys in that file:</p><pre>vi ~/.ssh/authorized_keys</pre><h4>Step 4: Test SSH connection using the private key</h4><p>Just to make sure that the public ssh key is added correctly to the authorized_keys file of a ppc64le VM, try SSHing into the ppc64le machine from the x86 machine with the corresponding private key.</p><pre>ssh -i /root/.ssh/id_rsa username@hostname</pre><h4>Step 5: Setup the Github repository</h4><p><a href="https://docs.github.com/en/get-started/quickstart/create-a-repo">Create</a> a new repository or simply fork <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/tree/hosted-multi-arch">this</a> repository into your GitHub account. Make sure that you are following the <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/tree/hosted-multi-arch">hosted-multi-arch</a> branch of my GitHub repository.</p><h4><strong>Step 6: Setting up your Build on CircleCI</strong></h4><ol><li>For this step, you will need a CircleCI account. Visit the CircleCI <a href="https://circleci.com/signup">signup page</a> and click “Sign Up with GitHub”. You will need to give CircleCI access to your GitHub account to run your builds. If you already have a CircleCI account then you can navigate to your <a href="https://circleci.com/dashboard">dashboard</a>.</li><li>Next, you need to add your repo as a new project on CircleCI. To add your new repo, ensure that your GitHub account is selected in the dropdown in the upper-left, find the repository you just created below, and click the Setup project button next to it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*T7ZRF4NMcsuTlJ4R.png" /></figure><p>3. On the redirected page, you will notice three options (Fastest, Faster and Fast), with <strong>Fastest</strong> selected as the default. We’ll use this default option.</p><p>4. Enter <strong>hosted-multi-arch</strong> in the input field for the GitHub branch (notice the text underneath the field confirming the presence of the .circleci/config.yml file) and click <strong>Set Up Project</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*2p4wWqjFobe-P6rZPErliQ.png" /></figure><p>Within no time, the build will get failed, as we are yet to add the self-hosted runner and the credentials associated with the Quay repository as an environment variable in our project.</p><h4><strong>Step 7: Adding a self-hosted runner to CircleCI</strong></h4><p>Follow <a href="https://circleci.com/blog/install-runner-in-five-minutes/">these instructions</a> for adding a self-hosted runner to CircleCI on an x86 machine. Once your runner is successfully configured and listening for jobs, it will display as idle which means you can execute your workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBN64r5qLlTisxTDeRqGZg.png" /></figure><p>You will need to update your custom resource class name of Self-Hosted Runner in <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/hosted-multi-arch/.circleci/config.yml">.circleci/config.yml</a> present on the GitHub repository.</p><h4><strong>Step 8: Setting an environment variable in a project</strong></h4><p>To customize our builds and avoid exposing secrets we will create environment variables on a CircleCI Project.</p><ol><li>On the CircleCI web app, click the <strong>Project Settings</strong> button on the project’s individual <strong>Pipelines</strong> page.</li><li>Click on <strong>Environment Variables</strong> in the side navigation.</li><li>Click the <strong>Add Variable</strong> button to enter the name and value of the new environment variable.</li></ol><pre>GH_REPO : Name of your GitHub Repo</pre><pre>PPC64LE_MACHINE_IP : IP of ppc64le VM</pre><pre>QUAY_REPO : Quay repository url for publishing images eg. quay.io/&lt;user&gt;/&lt;repository-name&gt;</pre><pre>QUAY_USER : Quay Robot user</pre><pre>QUAY_PASS : Quay Robot token</pre><h4>Step 9: Re-trigger the CircleCI build</h4><p>To use the newly created Environment Variables, re-trigger the CircleCI build by committing the <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/hosted-multi-arch/.circleci/config.yml">.circleci/config.yml</a> file or by re-running the failed workflow from the start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Q8zfPcKnN250McMlSlTMg.png" /></figure><p>Once the workflow is executed successfully, verify that the multi-arch image is pushed to your <a href="https://quay.io/repository/mayurwaghmode111/circleci-multi-arch?tab=tags">quay repository</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyqbninIDqPp-v5sbNUfew.png" /></figure><p>That’s all folks! Thanks for reading. Hope this tutorial was helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=957c6c70091c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub Actions: Self-hosted runners on ppc64le architectures]]></title>
            <link>https://medium.com/@mayurwaghmode/github-actions-self-hosted-runners-on-ppc64le-architectures-902b8f826557?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/902b8f826557</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[ssh-tunnel]]></category>
            <category><![CDATA[ppc64le]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Wed, 06 Jul 2022 15:19:07 GMT</pubDate>
            <atom:updated>2022-08-03T05:11:45.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*HdWZ3pZZqXhsWdM1.png" /></figure><h4>What is GitHub Actions?</h4><p>GitHub Actions enables you to “automate, customize, and execute your CICD pipeline right in your [GitHub] repository.” This means that you can create workflows or pipelines without ever leaving GitHub, assuming your source code is hosted there.</p><p>GitHub Actions officially supports self-hosted runners on the x86, ARM, and ARM64 architectures. However, it does not have official support for ppc64le architecture yet.</p><p>The aim of the blog is to help interested users in executing the GitHub Actions workflow on a ppc64le machine from the self-hosted runner registered on the x86 machine. To achieve this we are going to do an SSH from the x86 machine (self-hosted runner will be registered here) to the ppc64le machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*hFw9NpdtFx59SNdWJPLHMw.png" /></figure><h4>Pre-requisites</h4><ul><li>Account on <a href="https://github.com/">GitHub</a></li><li>x86 VM for adding a self-hosted runner to the GitHub repository and it will also act as a bastion for SSHing into the ppc64le VM</li><li>ppc64le VM for executing the GitHub Actions workflow</li></ul><p>You can use the <a href="https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started">PowerVS service at IBM Cloud</a> or <a href="https://openpower.ic.unicamp.br/minicloud/">Minicloud</a> to get your ppc64le virtual machine.</p><p>This example uses both centos 8 VMs.</p><h4><strong>Step 0: Generate SSH key</strong></h4><p>If you already do not have the ssh key pair then follow the below steps to generate it.</p><p>i] First, navigate to the .ssh directory on your x86 machine,</p><pre>cd ~/.ssh</pre><p>ii]Generate the SSH key,</p><pre>ssh-keygen -o -t rsa</pre><p>Press Enter to complete with the default configurations, we will leave that passphrase empty for now but, you can use it to add extra security to your key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DKNJX9Yzo5oWMGD52Vv1zw.png" /></figure><p>iii] When you type ls you should find two files: id_rsa and id_rsa.pub.</p><p>id_rsa has the private key while id_rsa.pub has the public key.</p><h4><strong>Step 1: Add public ssh key to the authorized_keys file of a ppc64le VM</strong></h4><p>First view/copy the contents of your recently generated public key id_rsa.pub on the x86 machine. The public ssh key begins with &quot;ssh-rsa&quot; and ends with your email address:</p><pre>cat ~/.ssh/id_rsa.pub</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zx9swm6mQyU72Cdot4FLGg.png" /></figure><p>Login to your ppc64le VM and editauthorized_keys file by putting the contents of your public key below any other keys in that file:</p><pre>vi ~/.ssh/authorized_keys</pre><h4>Step 2: Test SSH connection using the private key</h4><p>Just to make sure that the public ssh key is added correctly to the authorized_keys file of a ppc64le VM, try SSHing into the ppc64le machine from the x86 machine with the corresponding private key.</p><pre>ssh -i /root/.ssh/id_rsa username@hostname</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_lM-tzMBwDBLrhGkNfniDw.png" /></figure><p>The above output confirms that our ssh connection is working as expected :)</p><h4>Step 3: <strong>Setup the Github repository</strong></h4><p><a href="https://docs.github.com/en/get-started/quickstart/create-a-repo">Create</a> a new repository or simply fork <a href="https://github.com/mayurwaghmode/power-runner-ssh.git">this</a> repository into your GitHub account.</p><h4>Step 4: Create a repository secret for customizing your build</h4><p>To avoid exposing the IP address of your <a href="https://github.com/mayurwaghmode/power-runner-ssh/blob/main/.github/workflows/test-runner-on-ppc64le.yml#:~:text=ssh%20root%40-,%24%7B%7B%20secrets.PPC64LE_MACHINE_IP%20%7D%7D,-%3C%20/root/power%2Drunner">ppc64le machine</a>, create an Environment variable for storing it. Go to <strong>Settings &gt; Secrets &gt; Actions &gt; New repository secret </strong>and add <strong>PPC64LE_MACHINE_IP </strong>variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lKl_HSirg3IxHsix9cseg.png" /></figure><h4>Step 5: Adding a self-hosted runner to a GitHub repository</h4><p>Follow <a href="https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-a-repository">these instructions</a> for adding a self-hosted runner to the GitHub repository on an x86 machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-eQF-5QNv9vDN_FgTrBQRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5c2Y13CNABFH4Q9TLSbbA.png" /></figure><p>During configuration, the CLI will prompt you to answer a few questions, including naming the runner and determining the output directory for any jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-BaO_CEpERZ5tpAkcHw6aA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMbkhybcreKqvsbk_Dg0Sw.png" /></figure><p>Once your runner is successfully configured and listening for jobs, it will display as idle which means you’re ready to update your workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*84UEpQnH6mFYE13pqKPs3A.png" /></figure><h4>Step 6: Configure the GitHub Actions workflow</h4><p>For the very first time, you need to enable a workflow for your GitHub repository, follow <a href="https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow#enabling-a-workflow">this</a> to do that.</p><p>For triggering the workflow, commit the changes in any of the files of your <a href="https://github.com/mayurwaghmode/power-runner-ssh.git">GitHub repository</a>. Doing that, our workflow named “Github Actions runner on ppc64le” will get triggered. To view the workflow results, follow <a href="https://docs.github.com/en/actions/quickstart#viewing-your-workflow-results">this</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ts6j-BdbUgYEo7u1RMdsMQ.png" /></figure><p>In no time, <a href="https://github.com/mayurwaghmode/power-runner-ssh/blob/main/script-to-run-on-ppc64le.sh">this</a> script will get executed on a ppc64le machine.</p><h3>Troubleshooting</h3><p>While configuring the self-hosted runner on an x86 machine if you encountered an error <strong>Must not run with sudo</strong>then export the below variable. After this, re-run the configuration commands.</p><pre>export RUNNER_ALLOW_RUNASROOT=&quot;1&quot;</pre><p>That’s it! Thanks for reading! I hope you found this tutorial helpful. Feel free to reach out in case of any queries. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=902b8f826557" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building multi-arch container images with CircleCI]]></title>
            <link>https://medium.com/@mayurwaghmode/building-multi-arch-container-images-with-circleci-930a74cab9ec?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/930a74cab9ec</guid>
            <category><![CDATA[ibm-power-systems]]></category>
            <category><![CDATA[ci]]></category>
            <category><![CDATA[multiarch]]></category>
            <category><![CDATA[circleci]]></category>
            <category><![CDATA[ppc64le]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Thu, 16 Jun 2022 18:57:47 GMT</pubDate>
            <atom:updated>2022-06-17T05:05:01.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6HdgLecrGgfZy95tHeFZQ.png" /></figure><p>This is my second article about building multi-arch container images using different CI tools. In the <a href="https://medium.com/@mayurwaghmode/building-multi-arch-container-images-with-github-actions-and-buildah-dbb383474824">first article</a>, we saw how to use GitHub actions for building multi-arch container images. In this article, we will leverage <a href="https://circleci.com/">CircleCI</a> to build multi-arch container images.</p><p><strong>Step 0: Create accounts on the basic services required</strong></p><p>We are using <a href="https://github.com/">GitHub</a> to host the source code, <a href="https://circleci.com/">CircleCI</a> as our CI tool, and <a href="https://quay.io/">Quay.io</a> to host our multi-arch image, so if you want to follow the steps described here, you must have an account on each service.</p><p><strong>Step 1: Setup the Quay repository with a new Robot account</strong></p><p>Create a repository on <a href="https://quay.io/repository/">Quay.io</a> and add a <a href="https://docs.quay.io/glossary/robot-accounts.html#:~:text=Adding%20a%20robot%20account,of%20the%20user%20or%20organiaztion.">Robot account</a> to it. A robot account will be useful to pull/push your multi-arch images from/to the container registry (ensure you set the <strong>write</strong> permission to your robot, like the picture below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ogmsK9zp7qreYEUh.jpeg" /></figure><p><strong>Step 2: </strong><a href="https://docs.github.com/en/get-started/quickstart/create-a-repo"><strong>Create</strong></a><strong> a new repository on GitHub</strong></p><p><strong>Step 3: Create the Dockerfile of your application</strong></p><p>Create a Dockerfile of your application and push it to your newly created GitHub repository.</p><pre><strong>IMPORTANT</strong>: to create multi-arch image, you must ensure that the base image you are using is available for your target architectures. In this example, we are building a multi-arch image to run on x86_64 ppc64le, s390x and arm64 and the base image we are using (Ubuntu), is available for each architecture.</pre><p>We are going to use <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/main/Dockerfile">this Dockerfile</a> for building a multi-arch container image.</p><p><strong>Step 4: Creating a CircleCI config file</strong></p><ol><li>In your GitHub project create a .circleci directory.</li><li>Inside the newly created.circleci directory, create a <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/main/.circleci/config.yml">config.yml</a> and add <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/main/.circleci/config.yml">this code</a> to it.</li><li>Commit and push the changes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*AU_kCGT6gz5Zryn_qMS8Bw.png" /></figure><p>The <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/main/.circleci/config.yml">file</a> describes what should happen. It uses a few steps that are needed to achieve multi-architecture builds:</p><ul><li>Run a <a href="https://github.com/multiarch/qemu-user-static">multiarch/qemu-user-static</a> docker image to enable the execution of different multi-architecture containers by QEMU and binfmt_misc</li><li>Create a docker context ( docker context create ) and then use it ( docker buildx create --use )</li><li>Set DOCKER_EXPERIMENTAL=enabled when using docker buildx</li><li>docker buildx to create the container images and manifest for all the architectures specified in the --platform argument and pushes the newly created image to a remote registry.</li></ul><p><strong>Step 5: Setting up Your Build on CircleCI</strong></p><ol><li>For this step, you will need a CircleCI account. Visit the CircleCI <a href="https://circleci.com/signup">signup page</a> and click “Sign Up with GitHub”. You will need to give CircleCI access to your GitHub account to run your builds. If you already have a CircleCI account then you can navigate to your <a href="https://circleci.com/dashboard">dashboard</a>.</li><li>Next, you need to add your repo as a new project on CircleCI. To add your new repo, ensure that your GitHub account is selected in the dropdown in the upper-left, find the repository you just created below, and click the Setup project button next to it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1uNgcIzxk4bAWgm49RbIw.png" /></figure><p>3. On the redirected page, you will notice three options (Fastest, Faster and Fast), with <strong>Fastest</strong> selected as the default. We’ll use this default option.</p><p>4. Enter <strong>main</strong> in the input field for the GitHub branch (notice the text underneath the field confirming the presence of the .circleci/config.yml file) and click <strong>Set Up Project</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*G4q47JGAv6zEqzY3WPZRLw.png" /></figure><p>Within no time, the build will get failed, as we are yet to add the credentials associated with the Quay repository as an environment variable in our project.</p><p><strong>Step 6: Setting an environment variable in a project</strong></p><p>To push multi-arch images to the Quay.io registry, in <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/main/.circleci/config.yml">.circleci/config.yml</a> you need to provide the username and token of your Quay.io robot account. To avoid exposing them we will create environment variables on a CircleCI Project.</p><ol><li>On the CircleCI web app, click the <strong>Project Settings</strong> button on the project’s individual <strong>Pipelines</strong> page.</li><li>Click on <strong>Environment Variables</strong> in the side navigation.</li><li>Click the <strong>Add Variable</strong> button to enter the name and value of the new environment variable.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kmyvFhPvXoSLtiv32NI7vg.png" /></figure><h4><strong>Step 7: Re-trigger the CircleCI build</strong></h4><p>To use the newly created Environment Variables, re-trigger the CircleCI build by committing the <a href="https://github.com/mayurwaghmode/circleCI-multi-arch/blob/main/.circleci/config.yml">.circleci/config.yml</a> file or by re-running the failed workflow from the start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJBkCO7ncR2P-ecHOYIy6Q.png" /></figure><p>Once the build gets succeeded, multi-arch images will get pushed to quay.io</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*3aUdJzIjbHvvAMnHzNABQw.png" /></figure><h4>Step 8: <strong>Finally, test your multi-arch image</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbYAHic5I019v6vBt_oMeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*24MiB3aPzhP3ND3b3OVxyg.png" /></figure><p>We can also confirm it by using the <strong>docker manifest inspect </strong>command.</p><pre>docker manifest inspect --verbose quay.io/mayurwaghmode111/circleci-multi-arch</pre><pre>#The output should have json like:<br>....<br># &quot;platform&quot;: {<br>#        &quot;architecture&quot;: &quot;ppc64le&quot;,<br>#        &quot;os&quot;: &quot;linux&quot;,<br># }<br># ...<br># &quot;platform&quot;: {<br>#        &quot;architecture&quot;: &quot;s390x&quot;,<br>#        &quot;os&quot;: &quot;linux&quot;<br># }<br># ....<br># &quot;platform&quot;: {<br>#        &quot;architecture&quot;: &quot;arm64&quot;,<br>#        &quot;os&quot;: &quot;linux&quot;,<br># }<br># ...<br># &quot;platform&quot;: {<br>#        &quot;architecture&quot;: &quot;amd64&quot;,<br>#        &quot;os&quot;: &quot;linux&quot;,<br># }<br># ...</pre><p>That’s it! Thanks for reading! I hope you found this tutorial helpful. Feel free to reach out in case of any queries. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=930a74cab9ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-compiling C & C++ code for PPC64LE on x86_64]]></title>
            <link>https://medium.com/@mayurwaghmode/cross-compiling-c-c-code-for-ppc64le-on-x86-64-6226ff3a80b7?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6226ff3a80b7</guid>
            <category><![CDATA[cross-compilation]]></category>
            <category><![CDATA[toolchain]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[ppc64le]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Thu, 26 May 2022 07:30:55 GMT</pubDate>
            <atom:updated>2022-05-30T14:16:43.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUz51j4CuxJBTOFFId-JPg.png" /><figcaption>Cross compiler operation</figcaption></figure><h4><strong>What is Cross-compilation</strong></h4><p>Cross-compilation is the act of compiling the source code for one computer system (often known as the target) on a different system, called the host.</p><h4>What is cross-compilation for ppc64le</h4><p>A cross-compiler is one that compiles binaries for architectures other than its own, such as compiling <strong>ppc64le</strong> binaries on an Intel’s x86 processor. A “cross compiler” executes in one environment and generates code for another.</p><p>In this article, you will learn how to cross-compile C &amp; C++ code for ppc64le on x86 architecture.</p><p><strong>Pre-requisites:</strong></p><p>This example uses a CentOS Stream 9 x86 VM as a host operating system.</p><h4>Step 0: Install the necessary packages</h4><p>Use these steps to download the required packages and public key, create a repository configuration file, and install the cross-compiler package.</p><pre>[root@x86-centos ~]# sudo yum install gcc-c++ make</pre><pre>[root@x86-centos ~]# wget <a href="https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL8/gpg-pubkey-6976a827-5164221b">https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/RHEL8/gpg-pubkey-6976a827-5164221b</a></pre><pre>[root@x86-centos ~]# rpm --import gpg-pubkey-6976a827-5164221b</pre><p>Create a configuration file for the Advance Toolchain repository configuration file: /etc/yum.repos.d/<em>advance-toolchain.repo</em>. Add the following content:</p><pre># Begin of configuration file<br>[advance-toolchain]<br>name=Advance Toolchain IBM FTP<br>baseurl=https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/<em>RHELX</em><br>enabled=1<br>gpgcheck=1<br>gpgkey=https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/redhat/<em>RHELX</em>/gpg-pubkey-6976a827-5164221b<br># End of configuration file</pre><p>Replace <em>RHELX</em> with the Red Hat release that you are using. In my case, I have used RHEL8<br>Install the cross-compiler by running</p><pre>[root@x86-centos ~]# yum install advance-toolchain-at15.0-cross-ppc64le</pre><pre>[root@x86-centos ~]# export PATH=$PATH:/opt/at15.0/bin/</pre><h4>Check:</h4><pre>[root@x86-centos ~]# which powerpc64le-linux-gnu-{gcc,ld,objdump,g++}</pre><pre>/opt/at15.0/bin/powerpc64le-linux-gnu-gcc<br>/opt/at15.0/bin/powerpc64le-linux-gnu-ld<br>/opt/at15.0/bin/powerpc64le-linux-gnu-objdump<br>/opt/at15.0/bin/powerpc64le-linux-gnu-g++<br>[root@x86-centos ~]#</pre><p>Now we have the required packages, initially, we will cross-compile for C and then later for C++ source code.</p><h4>Step 1: Natively compiling a simple C program</h4><p>Before cross-compiling a C program, let&#39;s do a native compilation of a simple hello world C program, just to make sure that our program does what we want.</p><p>Save the source code as <strong>demo1.c</strong>:</p><pre>#include&lt;stdio.h&gt;<br>int main()<br>{<br>        printf(&quot;Hello World from C!\n&quot;);<br>        return 0;<br>}</pre><p>compile the above source code natively on your x86 machine and write the binary as demo1-x86_64.</p><pre>[root@x86-centos ~]# vi demo1.c</pre><pre>[root@x86-centos ~]# gcc demo1.c -o demo1-x86_64</pre><p>To see what type and for which platform the result of our GCC compilation is, we can check the output with the “<strong>file</strong>”-tool:</p><pre>[root@x86-centos ~]# file demo1-x86_64<br>demo1-x86_64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=d90f6b8a9c35a785c3b470c80b39f14e7e39874c, for GNU/Linux 3.2.0, not stripped</pre><p>To check the result we can execute the binary</p><pre>[root@x86-centos ~]# ./demo1-x86_64<br>Hello World from C!<br>[root@x86-centos ~]#</pre><h4>Step 2: Compile the same C source code for ppc64le</h4><p>To compile the same source code for ppc64le we will simply use the <strong>powerpc64le-linux-gnu-gcc</strong> compiler instead of the GCC compiler.</p><pre>[root@x86-centos ~]# powerpc64le-linux-gnu-gcc demo1.c -o demo1-ppc64le -static</pre><pre>[root@x86-centos ~]# file demo1-ppc64le<br>demo1-ppc64le: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, version 1 (GNU/Linux), statically linked, BuildID[sha1]=aedd7365b8df6c2c81160f41ec33c20e50536d42, for GNU/Linux 4.12.14, with debug_info, not stripped</pre><p>File results are ppc64le specific as we have used the <strong>powerpc64le-linux-gnu-gcc </strong>compiler to compile it.</p><h4>Step 3: Execute generated binary file on ppc64le machine</h4><p>To test if the binary is correctly working or not, copy “demo1-ppc64le” binary file on the ppc64le machine and execute it there.</p><pre>[root@ppc64le-centos ~]# arch<br>ppc64le</pre><pre>[root@ppc64le-centos ~]# ./demo1-ppc64le<br>Hello World from C!</pre><p>The above output confirms that our small C program works fine on ppc64le after cross-compiling it!</p><p>As a next step now we will cross-compile the C++ program for ppc64le on an x86 machine.</p><h4>Step 4: Natively compiling a simple C++ program</h4><p>Again just to make sure that our program does what we want, we will natively compile a simple C++ program on our x86 machine.</p><p>Save the source code as <strong>demo2.cpp</strong>:</p><pre>#include &lt;iostream&gt;<br>using namespace std;<br>int main()<br>{<br>        cout &lt;&lt; &quot;Hello World from C++&quot;;<br>        return 0;<br>}</pre><p>Compile the source code natively on an x86 machine and write the binary as demo2-x86_64.</p><pre>[root@x86-centos ~]# vi helloworld.c</pre><pre>[root@x86-centos ~]# g++ demo2.cpp -o demo2-x86_64</pre><p>Again to see what type and for which platform the result of our CPP compilation is, we can check the output with the “file”-tool:</p><pre>[root@x86-centos ~]# file demo2-x86_64<br>demo2-x86_64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=36fc431ef5d0b1ccc7cec4634a7c870851a93f8f, for GNU/Linux 3.2.0, not stripped</pre><p>We can execute the binary to check the result:</p><pre>[root@x86-centos ~]# ./demo2-x86_64<br>Hello World from C++</pre><h4>Step 5: Compile the same CPP source code for ppc64le</h4><p>The next step is to compile the same C++ source code for ppc64le. We will simply do this by using the <strong>powerpc64le-linux-gnu-g++</strong> compiler instead of the g++ compiler.</p><pre>[root@x86-centos ~]# powerpc64le-linux-gnu-g++ demo2.cpp -o demo2-ppc64le -static</pre><pre>[root@x86-centos ~]# file demo2-ppc64le<br>demo2-ppc64le: ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, version 1 (GNU/Linux), statically linked, for GNU/Linux 4.9.0, with debug_info, not stripped</pre><p>As you can see, the file gives us different results, which we would expect as we have used the <strong>powerpc64le-linux-gnu-g++</strong> compiler.</p><h4>Step 6: Execute generated binary file on ppc64le machine</h4><p>To test if the binary generated after the cross-compilation is working or not we will copy the “demo2-ppc64le” binary file on the ppc64le machine and execute it there.</p><pre>[root@ppc64le-centos ~]# arch<br>ppc64le</pre><pre>[root@ppc64le-centos ~]# ./demo2-ppc64le<br>Hello World from C++</pre><p>Again the above output confirms that our small C++ program works fine on ppc64le after cross-compiling it!</p><p>That’s it! We have cross-compiled the C &amp; C++ code for ppc64le on x86 architecture.</p><p>Thanks for reading! I hope you found this tutorial helpful. Feel free to reach out in case of any queries. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6226ff3a80b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Container Certification using GitHub Actions]]></title>
            <link>https://medium.com/@mayurwaghmode/container-certification-using-github-actions-42f618a58edd?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/42f618a58edd</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[ppc64le]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[ibm-power-systems]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Wed, 18 May 2022 09:38:37 GMT</pubDate>
            <atom:updated>2023-01-30T13:57:49.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*bluC0JpBevFMQDoIN_S4iQ.png" /></figure><p>This article continues to automate the container certification procedure using the different CI tools. In this tutorial, we will leverage GitHub Actions to automate the Red Hat Container certification tests on the ppc64le architecture.</p><h3>Prerequisites:</h3><p>make sure that you have:</p><ul><li>Created a Container application project and completed the pre-certification checklist on the <a href="https://connect.redhat.com/">Red Hat Partner Connect portal</a>, if not then follow<a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd#:~:text=1.%20Certification%20on%2Dboarding%20and%20opening%20your%20first%20project"> this</a>.</li><li><a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd#:~:text=1.2%20Get%20a,project%20id%3A%20626b8db2f34d934e76386ebf"><strong>Project Id</strong></a></li><li><a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd#:~:text=v.%20Get%20the,on%20the%20screen"><strong>API Key</strong></a><strong> </strong>(Pyxis API token)</li><li>Built and uploaded your container image to any public registry of your choice(quay.io/docker.io)</li><li>IBM Power resource for attaching the self-hosted runner</li></ul><p>You can use the <a href="https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started">PowerVS service at IBM Cloud</a> or <a href="https://openpower.ic.unicamp.br/minicloud/">Minicloud</a> to get your ppc64le virtual machine. This example uses a CentOS Stream 8 ppc64le VM.</p><h4>Step 0: Install nodejs on ppc64le machine</h4><p>Execute the below script for installing the nodejs on your ppc64le machine which will act as a self-hosted runner.</p><pre>wget <a href="https://nodejs.org/dist/latest/node-v19.4.0-linux-ppc64le.tar.gz">https://nodejs.org/dist/latest/node-v19.5.0-linux-ppc64le.tar.gz</a></pre><pre>tar -xvf node-v19.5.0-linux-ppc64le.tar.gz</pre><pre>mv node-v19.5.0-linux-ppc64le/bin/node /usr/local/bin/</pre><pre>node --version</pre><h4>Step 1: Download and extract the self-hosted runner artifact</h4><p>Officially ppc64le specific Github Actions Runner package is not available, so we are going to use the package available <a href="https://github.com/ChristopherHX/github-act-runner/releases/tag/v0.2.2">here</a>. Execute the below script for downloading and extracting the same.</p><pre>mkdir actions-runner &amp;&amp; cd actions-runner</pre><pre>wget <a href="https://github.com/ChristopherHX/github-act-runner/releases/download/v0.4.2/binary-linux-ppc64le.tar.gz">https://github.com/ChristopherHX/github-act-runner/releases/download/v0.4.2/binary-linux-ppc64le.tar.gz</a></pre><pre>tar xzf binary-linux-ppc64le.tar.gz</pre><h4>Step 2: Adding a self-hosted runner to a repository</h4><p>For adding a self-hosted runner to your repository, you must be the repository owner. To add a self-hosted runner to your repository -</p><ol><li>On GitHub.com, navigate to the main page of the repository.</li><li>Under your repository name, click Settings.</li><li>In the left sidebar, click Actions, then click Runners.</li><li>Click New self-hosted runner.</li><li>Select the Linux as a Runner image, you need not to worry about missing ppc6le in the listed architecture list, as we already have downloaded the ppc64le-specific GitHub Actions Runner package in step 1.</li><li>You will see instructions showing you how to download the runner application, configure the runner, and use it.</li><li>You need to follow only configure section for creating the runner and configuring it. It requires the destination URL and an automatically-generated time-limited token to authenticate the request.</li></ol><pre>$ ./config.sh --url https://github.com/user_name/repo_name --token xxxxxxxxxxxxxxxxx</pre><pre>$ ./run.sh</pre><h4>Step 3: Configure the GitHub Actions Workflow</h4><p>In your GitHub repository, create a <a href="https://github.com/mayurwaghmode/multi-arch-demo/tree/main/.github/workflows"><strong>.github/workflows/</strong></a><strong> </strong>directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-HxhuY3QA6cYY01d5qMTrw.png" /></figure><p>Inside the <a href="https://github.com/mayurwaghmode/container-certification-gh-action/tree/main/.github/workflows"><strong>.github/workflows/</strong></a> directory, create a new file and add <a href="https://github.com/mayurwaghmode/container-certification-gh-action/blob/main/.github/workflows/container-certification.yml">this</a> code to it.</p><h4>Step 4: Create Environment Variables for customizing your build</h4><p>In our <a href="https://github.com/mayurwaghmode/container-certification-gh-action/blob/main/.github/workflows/container-certification.yml">file</a> created inside the <strong>.github/workflows/</strong> directory, we are going to use the below variables. This will help us to customize our build according to our needs and it will help us to avoid exposing our credentials.</p><p>Go to <strong>Settings &gt; Secrets &gt; Actions &gt; New repository secret </strong>and add below variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hE1rV1ATxmuOWvOpLApx6Q.png" /></figure><ul><li><strong>USERNAME</strong>- username of your image registry(quay.io/docker.io)</li><li><strong>PASSWORD</strong>- password of your image registry</li><li><strong>IMAGE_REGISTRY</strong>- where you have uploaded your container image(quay.io/docker.io)</li><li><strong>IMAGE_NAMESPACE</strong>- namespace of your image registry(it may be similar to the username)</li><li><strong>IMAGE_NAME</strong>- the name of your container image</li><li><strong>IMAGE_TAG</strong>- tag attached to the container image</li><li><strong>PYXIS_API_TOKEN</strong>- container API key created on the connect portal</li><li><strong>PROJECT_ID</strong>- Container image project id</li></ul><h4>Step 5: Re-trigger the job</h4><p>To use the newly created Environment Variables, re-run the workflow or commit your <a href="https://github.com/mayurwaghmode/container-certification-gh-action/blob/main/.github/workflows/container-certification.yml">workflow file</a>.</p><h4>Step 6: Check the workflow</h4><p>To check the status of your workflow, follow the below steps -</p><ol><li>On GitHub.com, navigate to the main page of the repository.</li><li>Under your repository name, click <strong>Actions</strong>.</li><li>In the left sidebar, click the workflow you want to see, in our case we will check for the “container certification CI” workflow.</li><li>Under “Workflow runs”, click the name of the run you want to see, in our case again it is “container certification CI”.</li><li>Under Jobs or in the visualization graph, click the job you want to see, in our case it is “RH_certification”.</li><li>View the results of each step.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*3PFyUu0xOwkF4wiXc4yejw.png" /></figure><p>If you are facing any issue in the <a href="https://github.com/mayurwaghmode/container-certification-gh-action/blob/main/.github/workflows/container-certification.yml#:~:text=run%3A%20%7C-,preflight%20check%20container%20%22%24IMAGE_REGISTRY%22/%22%24IMAGE_NAMESPACE%22/%22%24IMAGE_NAME%22%3A%22%24IMAGE_TAG%22,-%2D%20name%3A">Check container image</a> step then review the log information and change the container as needed. For more information, see the <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/containers/troubleshooting.md">troubleshooting information</a> page.</p><p>If your job status is successfully completed then test results will be submitted to the Red Hat Partner Connect portal, and Red Hat will scan the layers of your container for package vulnerabilities.</p><h4>Step 7: Review your certification and vulnerability test results</h4><p>To review the certification and vulnerability test results in the certification project follow the below steps-</p><ol><li>Log in to the <a href="https://connect.redhat.com/">Red Hat Partner Connect portal</a>.</li><li>Navigate to the <strong>Certified technology portal</strong> tile and click <strong>Log in for technology partners</strong>.</li><li>Enter the login credentials and click <strong>Login</strong>.</li><li>On the page header, select <strong>Product certification</strong> and click <strong>Manage certification projects</strong>. <strong>My Work</strong> web page displays the <strong>Product Listings</strong> and <strong>Certification Projects</strong></li><li>Click on the project for which you have submitted the container certification results.</li><li>Navigate to the <strong><em>Images</em></strong> tab on the <strong>Container image project web page. </strong>For more information, see <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.45/html/red_hat_software_certification_workflow_guide/assembly_configuring-the-container-project_openshift-sw-cert-workflow-working-with-containers#proc_viewing-the-image-test-results_openshift-sw-cert-workflow-complete-pre-certification-checklist-for-containers">Viewing the image test results</a>.</li></ol><h4>Step 8: Publishing the certified container</h4><p>If the scanning for vulnerabilities is successfully completed, then the publish button will be enabled for your image. After you click the publish button, your image will be available in the <a href="https://catalog.redhat.com/">Red Hat Ecosystem Catalog</a>.</p><p>That’s it! Thanks for reading! I hope you found this tutorial helpful. Feel free to reach out in case of any queries. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42f618a58edd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Container certification using Travis CI]]></title>
            <link>https://medium.com/@mayurwaghmode/container-certification-using-travis-ci-708549640bea?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/708549640bea</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[ibm-power-systems]]></category>
            <category><![CDATA[travis-ci]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Fri, 13 May 2022 13:09:18 GMT</pubDate>
            <atom:updated>2022-05-18T09:46:57.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*0rhLeKqBYieSZCBl.png" /></figure><p>In <a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd">this</a> article, we saw how someone can certify their container image on IBM Power architecture. This article will help you to automate the Red Hat Container certification tests on the choice of your architecture by setting up the Travis CI service and integrating it with GitHub.</p><h3>Prerequisites:</h3><p>make sure that you have:</p><ul><li>Created a Container application project and completed the pre-certification checklist on the <a href="https://connect.redhat.com/">Red Hat Partner Connect portal</a>, if not then follow<a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd#:~:text=1.%20Certification%20on%2Dboarding%20and%20opening%20your%20first%20project"> this</a>.</li><li><a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd#:~:text=1.2%20Get%20a,project%20id%3A%20626b8db2f34d934e76386ebf"><strong>Project Id</strong></a></li><li><a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd#:~:text=v.%20Get%20the,on%20the%20screen"><strong>API Key</strong></a><strong> </strong>(Pyxis API token)</li><li>Built and uploaded your container image to any public registry of your choice(quay.io/docker.io)</li></ul><h4><strong>Step 0: Set Up Travis</strong></h4><p>Follow <a href="https://docs.travis-ci.com/user/tutorial/#:~:text=To%20get%20started%20with%20Travis%20CI%20using%20GitHub%20%23,getting%20started%20page%20to%20just%20activate%20all%20your%20repos">this</a> document for setting up Travis.</p><h4><strong>Step 1: Add a </strong><strong>.travis.yml file to your repository</strong></h4><p>Create a <strong>.travis.yml</strong> file in your GitHub repository and add <a href="https://github.com/mayurwaghmode/container-certification/blob/main/.travis.yml">this</a> code to it.</p><h4><strong>Step 2: Create Environment Variables for customizing your build</strong></h4><p>In our <a href="https://github.com/mayurwaghmode/container-certification/blob/main/.travis.yml"><strong>.travis.yml</strong></a><strong> </strong>file, we are going to use the below variables. This will help us to customize our build according to our needs. Follow <a href="https://docs.travis-ci.com/user/environment-variables/#:~:text=Defining%20Variables%20in%20Repository%20Settings%20%23,branch%20it%20should%20be%20available%20to.">this</a> to define environment variables in our Travis CI’s Repository Settings.</p><ul><li><strong>USERNAME</strong>- username of your image registry(quay.io/docker.io)</li><li><strong>PASSWORD</strong>- password of your image registry</li><li><strong>IMAGE_REGISTRY</strong>- where you have uploaded your container image(quay.io/docker.io)</li><li><strong>IMAGE_NAMESPACE</strong>- namespace of your image registry(it may be similar to the username)</li><li><strong>IMAGE_NAME</strong>- the name of your container image</li><li><strong>ARCH</strong>- architecture on which you want to execute the container certification test</li><li><strong>IMAGE_TAG</strong>- tag attached to the container image</li><li><strong>PYXIS_API_TOKEN</strong>- container API key created on the connect portal</li><li><strong>PROJECT_ID</strong>- Container image project id</li></ul><p>If you are using other than ppc64le architecture then don’t forget to change it <a href="https://github.com/mayurwaghmode/container-certification-travis/blob/main/.travis.yml#:~:text=language%3A%20bash-,os%3A%20linux%2Dppc64le,-service%3A%20docker">here</a>.</p><h4><strong>Step 3: Re-trigger the Travis CI build</strong></h4><p>To use the newly created Environment Variables, re-trigger the Travis CI build by committing the <a href="https://github.com/mayurwaghmode/container-certification/blob/main/.travis.yml">.travis.yml</a> file.</p><h4>Step 4: Check the build status</h4><p>To check the build status, visit <a href="https://travis-ci.com/auth">Travis CI</a> and select your repository to see if your build has <a href="https://docs.travis-ci.com/user/job-lifecycle/#breaking-the-build">passed or failed</a> according to the return status of the build command. If you are facing any issue in the <a href="https://github.com/mayurwaghmode/container-certification/blob/main/.travis.yml#:~:text=%2D-,preflight%20check%20container%20%22%24IMAGE_REGISTRY%22/%22%24IMAGE_NAMESPACE%22/%22%24IMAGE_NAME%22%3A%22%24IMAGE_TAG%22,-%2D%20docker%20login">preflight check</a> container step then review the log information and change the container as needed. For more information, see the <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/containers/troubleshooting.md">troubleshooting information</a> page.</p><p>If your build status is passed then test results will be submitted to the Red Hat Partner Connect portal, and Red Hat will scan the layers of your container for package vulnerabilities.</p><h4><strong>Step 5: Review your certification and vulnerability test results</strong></h4><p>To review the certification and vulnerability test results in the certification project follow the below steps-</p><ol><li>Log in to the <a href="https://connect.redhat.com/">Red Hat Partner Connect portal</a>.</li><li>Navigate to the <strong>Certified technology portal</strong> tile and click <strong>Log in for technology partners</strong>.</li><li>Enter the login credentials and click <strong>Login</strong>.</li><li>On the page header, select <strong>Product certification</strong> and click <strong>Manage certification projects</strong>. <strong>My Work</strong> web page displays the <strong>Product Listings</strong> and <strong>Certification Projects</strong></li><li>Click on the project for which you have submitted the container certification results.</li><li>Navigate to the <strong><em>Images</em></strong> tab on the <strong>Container image project web page. </strong>For more information, see <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.45/html/red_hat_software_certification_workflow_guide/assembly_configuring-the-container-project_openshift-sw-cert-workflow-working-with-containers#proc_viewing-the-image-test-results_openshift-sw-cert-workflow-complete-pre-certification-checklist-for-containers">Viewing the image test results</a>.</li></ol><h4><strong>Step 6: Publishing the certified container</strong></h4><p>If the scanning for vulnerabilities is successfully completed, then the publish button will be enabled for your image. After you click the publish button, your image will be available in the <a href="https://catalog.redhat.com/">Red Hat Ecosystem Catalog</a>.</p><p>That’s it! Thanks for reading! I hope you found this tutorial helpful. Feel free to reach out in case of any queries. Happy learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=708549640bea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Red Hat Container Certification on IBM Power]]></title>
            <link>https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/766fe3f421dd</guid>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Fri, 25 Mar 2022 10:09:46 GMT</pubDate>
            <atom:updated>2022-05-13T05:18:21.497Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Red Hat</strong> <strong>container certification?</strong></p><p>For your application to run well in Kubernetes and Red Hat OpenShift, you need to build an image with qualities that will make its containers run well. Getting your container certified through <a href="https://connect.redhat.com/partner-with-us/red-hat-container-certification?_ga=2.21369595.1116008801.1647837692-2111989276.1625749251">Red Hat Container Certification</a> signals to users of your container that it is secure, supported, and trustworthy, and that your applications will run properly and consistently across any of OpenShift’s supported platforms, including bare metal and cloud.</p><p>This tutorial will help you to test the Red Hat container certification process on Power. The good news is that the Red Hat container certification process for Power is exactly similar to x86 architecture. <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.44/html/red_hat_software_certification_workflow_guide/assembly_working-with-containers_openshift-sw-cert-workflow-introduction-to-redhat-openshift-operator-certification">Here</a> is the official documentation.</p><h4><strong>Container certification workflow</strong></h4><p>The following diagram gives an overview of the container certification workflow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kObWp1IGJ8qs0-c1rHR8Rg.png" /><figcaption><strong>fig. 1 Container certification workflow</strong></figcaption></figure><p>Perform the following steps to complete the container certification on Power:</p><h3>1. Certification on-boarding and opening your first project</h3><p>The onboarding workflow includes the following tasks.</p><h4>1.1 Create a container application project</h4><ol><li>Log in to the <a href="https://connect.redhat.com/">Red Hat Partner Connect portal</a>.</li><li>Navigate to the <strong>Certified technology portal</strong> tile and click <strong>Log in for technology partners</strong>.</li><li>Enter the login credentials and click <strong>Login</strong>.</li><li>On the Red Hat Partner Connect page header, select <strong>Product certification</strong> and click <strong>Manage certification projects</strong>.</li><li>Click <strong>Create Project</strong>.</li><li>In the <strong>What do you want to certify?</strong> a dialog box, select your desired platform, and click <strong>Next</strong>. For example, select the <strong>Red Hat OpenShift</strong> radio button for creating a container project.</li><li>In the <strong>What do you want to certify?</strong> dialog box, select the <strong>Container image</strong> radio button and click <strong>Next</strong>.</li><li>On the <strong>Create container image certification project</strong> web page, provide the following details to create your project.</li></ol><p><strong>NOTE</strong>: You cannot change the project name and its distribution method after you have created the project.</p><p><strong>a. Project Name</strong> — Enter the project name. This name is only for internal use.</p><p><strong>b. OS Content Type</strong> — Select the type of image that you want to use for your container project:</p><ul><li><strong>Red Hat Universal Base Image</strong> — You can distribute the container images built on this image through the Red Hat Container registry or a non-Red Hat registry. Additionally, it is eligible for publication in the Red Hat Marketplace powered by IBM.</li><li><strong>Red Hat Enterprise Linux</strong> — You can distribute the container images built on this image only through the Red Hat Container registry.</li></ul><p><strong>c. Distribution Method</strong> — Select the container registry that you will use for distributing your container images. Users will pull your container images from this location. It can be:</p><ul><li><strong>Red Hat Container registry and marketplace, if applicable- </strong>Images with this distribution method are hosted at <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.44/html/red_hat_software_certification_workflow_guide/proc_creating-a-container-application-project_openshift-sw-cert-workflow-working-with-containers">registry.connect.redhat.com</a>.</li><li><strong>Red Hat Marketplace only- </strong>Select this option if you are going to publish your image on the Red Hat Marketplace powered by IBM. For example, if you have an Operator that you wish to list on their marketplace, you have the option to host your images in the Red Hat Marketplace entitled registry. For instructions on using this registry, see 5.1 Entitled Registry</li></ul><p><strong>NOTE:</strong> Select this option only if your image is a part of an application, deployed by an Operator, that you plan to list on the Red Hat Marketplace website.</p><p><strong>d. Click Create project.</strong></p><h4>1.2 Get a project ID (PID)</h4><p>The Project ID can be obtained from connect.redhat.com</p><ol><li>Navigate to <a href="https://connect.redhat.com/">connect.redhat.com</a></li><li>Click the login icon</li><li>Click the Log in for technology partners button</li><li>Login with your Red Hat Credentials</li><li>In the top navigation click the Product certification dropdown</li><li>In the dropdown click the Manage certification projects link</li><li>Click the project link with Type: Container Image</li><li>From the Container image project page, pull the project ID from the URL</li></ol><blockquote><em>Example: project id: </em><em>626b8db2f34d934e76386ebf</em></blockquote><h4>1.3 Configure the container project for completing the Pre-certification checklist</h4><p><strong>i. Accept the Red Hat Container Appendix</strong></p><p>a. To publish any image, agree to the terms regarding the distribution of partner container images.</p><p>b. Navigate to the <strong>Accept the Red Hat Container Appendix</strong> tile and click <strong>Review Accepted Terms</strong>. The Red Hat Partner Connect Container Appendix document displays. Read the document to know the terms related to the distribution of container images.</p><p><strong>ii. Provide details about your container</strong></p><p>a. Navigate to <strong>Provide details about your container</strong> tile, to enter your repository details that are displayed in the catalog. This will allow users to pull your container image.</p><p>b. Click <strong>Add details</strong>. You are navigated to the <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.44/html/red_hat_software_certification_workflow_guide/assembly_configuring-the-container-project_openshift-sw-cert-workflow-working-with-containers#proc_managing-the-container-project-settings_openshift-sw-cert-workflow-complete-pre-certification-checklist-for-containers">Settings</a> tab.</p><p>c. Enter all the required repository information.</p><p>d. After filling in all the fields, click <strong>Save</strong>.</p><p><strong>iii. Complete your company profile</strong></p><p>Keep your company profile up-to-date. This information gets published in the Catalog along with your certified product.</p><p>To verify:</p><ol><li>Navigate to <strong>Complete your company profile</strong> tile.</li><li>Click <strong>Review</strong> in your checklist.</li><li>To make any changes, click <strong>Edit</strong>.</li><li>Click <strong>Save</strong>.</li></ol><p><strong>iv. Complete export control questionnaire</strong></p><p>The <a href="https://docs.google.com/forms/d/e/1FAIpQLSczOO7juMCE2KN3aG7C9LK8a3KKIDVRsreebrU4CxGeLSvzhg/viewform?c=0&amp;w=1">export control questionnaire</a> contains a series of questions through which the Red Hat legal team evaluates the export compliance by third-party vendors.</p><p>The partner’s legal representative must review and answer the questions. Red Hat takes approximately five business days to evaluate the responses and based on the responses Red Hat approves partners or declines partners or defers decisions or requests more information.</p><p><strong>NOTE- </strong>If you are using a version of <a href="https://access.redhat.com/articles/4238681">UBI</a> (Universal Base Image) to build your container image, you can host your image in a private repository. This allows you to skip Export Compliance. This Export Compliance form is required only if you are hosting your images on the <a href="https://catalog.redhat.com/">Red Hat Container Catalog</a>.</p><p><strong>v. Get the API key</strong></p><p>The container API key can be obtained from <a href="https://connect.redhat.com/">connect.redhat.com</a></p><ol><li>Navigate to <a href="https://connect.redhat.com/">connect.redhat.com</a></li><li>Click the login icon</li><li>Click the Log in for technology partners button</li><li>Login with your Red Hat Credentials</li><li>In the top navigation click the Product certification dropdown</li><li>In the dropdown click the Container API keys link</li><li>From the My API Keys screen click the Generate New Key button</li><li>In the pop-up screen enter a descriptive Key Name and click the save button</li><li>Your API Key will be generated and displayed on the screen.</li></ol><p><strong>Important: </strong>Copy the API Key from the screen as you won’t be able to view it again.</p><h3>2. Running the certification test suite</h3><p><strong>Prerequisites</strong></p><ul><li>You have a Red Hat Enterprise Linux (RHEL) system(Other flavors will also work but RHEL is recommended).</li><li>You can use Podman to log in to your image registry. For example:</li></ul><pre>$ podman login --username &lt;your_username&gt; --password &lt;your_password&gt; --authfile ./temp-authfile.json &lt;registry_name(quay.io/docker.io)&gt;</pre><ul><li>Make sure that you have set up the container project on the <a href="https://connect.redhat.com/">Red Hat Partner Connect portal</a>. The pre-certification checklist must at least be in progress.</li><li>You have a <a href="https://connect.redhat.com/account/api-keys">pyxis API key</a>.</li></ul><p><strong>Procedure</strong></p><ol><li>Build your container image by using Podman/Docker.</li><li>Upload your container image to any private or public registry of your choice.</li><li>Download the latest <a href="https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases">Preflight certification utility</a>.</li></ol><pre>$ wget <a href="https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.2.0/preflight-linux-ppc64le">https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.2.0/preflight-linux-ppc64le</a></pre><pre>$ chmod u+x <a href="https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.2.0/preflight-linux-ppc64le">preflight-linux-ppc64le</a></pre><pre>$ mv <a href="https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.2.0/preflight-linux-ppc64le">preflight-linux-ppc64le</a> /usr/local/bin/preflight</pre><pre>$ preflight --version</pre><p>4. Perform the following steps to verify the functionality of the container being certified:</p><p>i. Run the Preflight certification utility:</p><pre>$ preflight check container \<br>registry.example.org/&lt;namespace&gt;/&lt;image_name&gt;:&lt;image_tag&gt;</pre><p>ii. Review the log information and change the container as needed. For more information, see the <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/containers/troubleshooting.md">troubleshooting information</a> page.</p><p>If you find any issues, either submit a <a href="https://connect.redhat.com/support/technology-partner/#/case/new">support ticket</a> or run the following command:</p><pre>$ preflight support</pre><p>iii. Run the container certification utility and make changes until all the tests pass.</p><p>5. Submit the certification test results by running the following command:</p><pre>$ preflight check container \<br>registry.example.org/&lt;namespace&gt;/&lt;image_name&gt;:&lt;image_tag&gt; \<br>--submit \<br>--pyxis-api-token=&lt;api_token&gt; \<br>--certification-project-id=&lt;project_id&gt; \<br>--docker-config=./temp-authfile.json</pre><p>After you submit your test results to the Red Hat Partner Connect portal, Red Hat will scan the layers of your container for package vulnerabilities.</p><h3>3. Publish the certified container</h3><p>After you submit your test results from the preflight tool on your <a href="https://connect.redhat.com/">Partner Connect project</a>, your container images are scanned for vulnerabilities within the project. When the scanning is successfully completed, the publish button will be enabled for your image. After you click the publish button, your image will be available in the <a href="https://catalog.redhat.com/">Red Hat Ecosystem Catalog</a>.</p><p>Done! Thanks for reading! I hope you found this tutorial helpful :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=766fe3f421dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Red Hat Openshift Operator Certification on Power]]></title>
            <link>https://medium.com/@mayurwaghmode/red-hat-openshift-operator-certification-on-power-6ad34a0d26a3?source=rss-af20cf42abc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ad34a0d26a3</guid>
            <dc:creator><![CDATA[Mayur Waghmode]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 10:51:17 GMT</pubDate>
            <atom:updated>2022-05-23T09:13:29.555Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Red Hat OpenShift Operator certification?</strong></p><p>The Red Hat OpenShift Operator Certification Program ensures compatibility of your software product Operator construction with the Red Hat platform. The program has four main elements:</p><ul><li><strong>Project</strong>: The online workflow where the progress and status of certification requests are tracked and reported.</li><li><strong>Test suite</strong>: Tests implemented as an integratable pipeline for Operators undergoing certification.</li><li><strong>Publication</strong>: Certified Operators are published in the Red Hat Ecosystem Catalog and embedded OperatorHub with the option of publishing to Red Hat Marketplace powered by IBM.</li><li><strong>Support</strong>: A joint support relationship between you and Red Hat to ensure customer success when deploying certified Operators.</li></ul><p><strong>Scope of the Red Hat OpenShift Operator Certification program:</strong></p><ul><li>Provides a way for Red Hat partners to certify their Operators and distribute them through OperatorHub and <a href="https://marketplace.redhat.com/en-us">Red Hat Marketplace</a>.</li><li>Enables OpenShift Container Platform users to easily install software on their OpenShift clusters through OperatorHub and Red Hat Marketplace. Create alliances to support a vast expansion of offerings in cooperation with ISV partners focused on customers and their open hybrid cloud journey.</li></ul><p>This tutorial will help you to follow the Red Hat Openshift operator certification workflow on Power architecture. <a href="https://youtu.be/FZKyPUYWyGg">Here</a> is the step-by-step video guide.</p><p><strong>Note:</strong> Certify your operator image or necessary container image as a container application project before proceeding with Red Hat Operator certification. All containers referenced in an Operator Bundle must already be certified and published in the Red Hat Ecosystem Catalog prior to beginning to certify an Operator Bundle. If you haven’t certified your container image then follow this <a href="https://medium.com/@mayurwaghmode/red-hat-container-certification-on-ibm-power-766fe3f421dd">blog</a> to certify your container image</p><h3>Certification on-boarding</h3><p>Perform the steps outlined for the certification on-boarding:</p><p><strong>1. Create an account on Red Hat Partner Connect Portal</strong></p><p>1. Go to the <a href="http://connect.redhat.com/">connect.redhat.com</a></p><p>2. Click on login and choose login for technology partners</p><p>3. Click on Register for a Red Hat account</p><p>4. Create the account by filling in the required details</p><p><strong>2. Creating an Operator Bundle Project</strong></p><p>Follow the steps mentioned <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.45/html/red_hat_software_certification_workflow_guide/proc_creating-an-operator-bundle-project_openshift-sw-cert-workflow-working-with-operators">here</a> to create an operator Bundle Project</p><p><strong>3. </strong><a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/4.9/ga/operator-cert-workflow.md#:~:text=Step%20A%20%2D%20Get,project%20id%3A%20617954f8c41de7ab3fe03dc3"><strong>Get Project ID</strong></a></p><p>After creating the Operator Bundle Image project, pull the project ID from the URL of the same page. We need to put that in the ci.yaml file of your operator bundle image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4KIH5sJhminFJ4nfqBbEZg.png" /></figure><p>Example: cert_project_id: 620f6de544c5d1c19a938786</p><h4>4. Complete the Pre-certification checklist</h4><p>Follow the steps mentioned <a href="https://access.redhat.com/documentation/en-us/red_hat_software_certification/8.45/html/red_hat_software_certification_workflow_guide/assembly_configuring-the-operator-bundle_openshift-sw-cert-workflow-working-with-operators">here</a> for configuring the newly created Operator Bundle project and completing the Pre-certification checklist. Once done, your pre-certification checklist will look similar to below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*BpPDyHW5xpqrka1qoSxtJA.png" /><figcaption>pre-certification checklist</figcaption></figure><p>A green checkmark appears beside the tiles to indicate that configuration is complete.</p><p>If you want to publish your operator bundle to <strong>Red Hat Marketplace</strong> then complete the extra step mentioned <a href="https://access.redhat.com/documentation/en-us/red_hat_openshift_certification/4.9/html/red_hat_openshift_software_certification_workflow_guide/assembly_configuring-the-operator-bundle_openshift-sw-cert-workflow-introduction-to-redhat-openshift-operator-certification#:~:text=configuration%20is%20complete.-,3.1.4.%C2%A0Publishing%20the%20Operator%20bundle%20to%20Red%20Hat%20Marketplace,last%20step%20in%20completing%20the%20certification%20for%20Operator%20Bundle%20image.,-3.1.5.%C2%A0Test%20your">here</a>.</p><p><strong>5. Get API Key</strong></p><p>Follow the steps mentioned <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/4.9/ga/operator-cert-workflow.md#:~:text=Step%20B%20%2D%20Get,displayed%20on%20screen.">here</a> to get the API key.</p><p><strong>Important</strong>: Make sure that you copy the API Key from the screen as you won’t be able to view it again.</p><h3>Running the Operator Certification CI Pipeline locally</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pK66BkeJiLJR4z6Cp4eFtg.png" /><figcaption><strong>Fig. Overview of running the certification test suite locally</strong></figcaption></figure><p>This test suite uses OpenShift pipelines based on Tekton, to run the certification tests, enabling the viewing of comprehensive logs and debugging information in real-time. Once you are ready to certify and publish your operator bundle, the pipeline submits a pull request (PR) to GitHub on your behalf. If everything passes successfully, your operator is automatically merged and published in the Red Hat Container Catalog and the embedded operatorHub in OpenShift.</p><p>Follow the instructions to run the certification test suite locally on Power Cluster:</p><p><strong>Prerequisites:</strong></p><p>To certify your software product on the Red Hat OpenShift test environment, ensure to have:</p><ul><li>The ppc64le Openshift cluster with version 4.8 or above on PowerVS</li></ul><p><strong>Note</strong>: The CI Pipeline will make a Persistent Volume Claim for a 5GB volume. Make sure that you have set up the NFS server, and configure it on your cluster for Persistent storage.</p><ul><li>The kubeconfig file for an admin user that has cluster-admin privileges.</li><li>The valid operator bundle.</li><li>The OpenShift CLI tool (oc) version 4.7.13 or later is installed.</li><li>The Git CLI tool (git) version 2.32.0 or later is installed.</li><li>The Tekton CLI tool (tkn) version 0.19.1 or later is installed.</li></ul><h4><strong>Install Tekton CLI and Git</strong></h4><p>Open a terminal window, and execute the following commands for login to the PowerVS Openshift Cluster</p><pre>ssh -i &lt;ssh_key&gt; <a href="/service/mailto:root@130.198.103.117">root@&lt;bastion_node_ip&gt;</a></pre><pre>oc login -u kubeadmin -p &lt;kubepassword&gt;</pre><h4>Install Tekton CLI</h4><pre>curl -LO <a href="https://github.com/tektoncd/cli/releases/download/v0.22.0/tkn_0.22.0_Linux_ppc64le.tar.gz">https://github.com/tektoncd/cli/releases/download/v0.22.0/tkn_0.22.0_Linux_ppc64le.tar.gz</a></pre><pre>sudo tar xvzf tkn_0.22.0_Linux_ppc64le.tar.gz -C /usr/local/bin/</pre><h4>Install Git</h4><pre>yum install git -y</pre><pre>git version</pre><h4>Prepare your Operator Bundle</h4><p>Follow the steps mentioned <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/4.9/ga/ci-pipeline.md#:~:text=Prepare%20your%20Operator,be%20found%20here.">here</a> to prepare your operator bundle.</p><p><strong>Note:</strong> Make sure that you have added the below line in <a href="https://github.com/opdev/simple-demo-pipeline/blob/main/operators/simple-demo-operator/v0.0.3/metadata/annotations.yaml#:~:text=com.redhat.openshift.versions%3A%20v4.6%2Dv4.8">annotations.yaml </a>file</p><pre># Annotations to specify OCP versions compatibility.  com.redhat.openshift.versions: v4.6-v4.9</pre><h4>Forking the repository</h4><p>1. Log in to GitHub and fork the RedHat OpenShift operators upstream repository.</p><p>2. Fork the appropriate repositories from the following table, depending on the Catalogs that you are targeting for distribution:</p><pre>--------------------------------------------------------------------<br>|     <strong>Catalog      </strong>  |      <strong>    Upstream Repository              </strong>  | <strong>   <br></strong>--------------------------------------------------------------------|Certified Catalog<strong>  </strong> | <a href="https://github.com/redhat-openshift-ecosystem/certified-operators">https://github.com/redhat-openshift-ecosystem/certified-operators</a><strong>                                     </strong> | --------------------------------------------------------------------|Red Hat Marketplace<strong> </strong>| <a href="https://github.com/redhat-openshift-ecosystem/redhat-marketplace-operators">https://github.com/redhat-openshift-ecosystem/redhat-marketplace-operators</a>                             |<br>--------------------------------------------------------------------</pre><p>3. Clone the forked upstream repository.</p><p>4. Add the contents of your operator bundle to the <strong>operators</strong> directory available in your forked repository.</p><p>If you want to publish your operator bundle in multiple catalogs, you can fork each catalog and complete the certification once for each fork.</p><h3>Installation</h3><h4>Step 1- Install OpenShift Pipelines Operator</h4><ul><li>Log into your cluster’s OpenShift Console with cluster-admin privileges</li><li>Use the left-hand menu to navigate to <em>Operators</em></li><li>In the <em>Operators,</em> submenu click on <em>OperatorHub</em></li><li>Use the Filter/Search box to filter on <em>OpenShift Pipelines</em></li><li>Click the <em>Red Hat OpenShift Pipelines</em> tile</li><li>In the flyout menu to the right-click the <em>Install</em> button near the top</li><li>On the next screen “Install Operator” scroll to the bottom of the page and click <em>Install</em></li></ul><h4>Step 2- Configure the OpenShift CLI tool (oc)</h4><ul><li>Open a terminal window, Set the KUBECONFIG environment variable</li></ul><pre>export KUBECONFIG=/path/to/your/cluster/kubeconfig</pre><p><strong>Example</strong>: export KUBECONFIG=/root/.kube/config</p><p><strong>Note</strong>: <em>This kubeconfig will be used to deploy the Operator under test and run the certification checks.</em></p><h4>Step 3- Create an OpenShift Project (namespace) to work in</h4><pre>oc adm new-project &lt;my-project-name&gt; # create the project</pre><pre>oc project &lt;my-project-name&gt; # switch into the project</pre><p><strong>Troubleshooting Tip</strong>: There are known issues running the pipeline in the default project/namespace. So, create a project for the pipeline.</p><h4>Step 4- Add the Kubeconfig secret</h4><pre>oc create secret generic kubeconfig --from-file=kubeconfig=$KUBECONFIG</pre><h4>Step 5- Import Red Hat Catalogs</h4><pre>oc import-image certified-operator-index \<br>  --from=registry.redhat.io/redhat/certified-operator-index \<br>  --reference-policy local \<br>  --scheduled \<br>  --confirm \<br>  --all</pre><pre>oc import-image redhat-marketplace-index \<br>  --from=registry.redhat.io/redhat/redhat-marketplace-index \<br>  --reference-policy local \<br>  --scheduled \<br>  --confirm \<br>  --all</pre><h4>Step 6- Install the Certification Pipeline and dependencies into the cluster</h4><pre>git clone <a href="https://github.com/redhat-openshift-ecosystem/operator-pipelines">https://github.com/redhat-openshift-ecosystem/operator-pipelines</a></pre><pre>cd operator-pipelines</pre><h4><strong>Replace tools images with multi-arch supported version</strong></h4><p>Replace Operator Pipeline image with multi-architecture supported version of it. From the below file overwrite the default image value with the following, without touching any other lines.</p><pre>#Open file for replacing the Operator pipeline image</pre><pre>vi ansible/roles/operator-pipeline/templates/openshift/pipelines/operator-ci-pipeline.yml</pre><pre>#Replace below default image with following multi-arch image<br>#default: &quot;quay.io/redhat-isv/operator-pipelines-images:released“</pre><pre>default: &quot;<a href="https://medium.com/quay.io/redhat-isv/operator-pipelines-images:multi-arch">quay.io/redhat-isv/operator-pipelines-images:multi-arch</a>&quot;</pre><p><strong>Grant the anyuid SCC to the default pipeline service account</strong></p><p>To avoid any pipeline permission issues on Power, grant the anyuid security context constraints to the default pipeline service account.</p><pre>oc adm policy add-scc-to-user anyuid -z pipeline</pre><p><strong>Install the Certification Pipeline and dependencies into the cluster</strong></p><pre>oc apply -R -f ansible/roles/operator-pipeline/templates/openshift/pipelines</pre><pre>oc apply -R -f ansible/roles/operator-pipeline/templates/openshift/tasks</pre><h4>Step 7- Configuration Steps for Submitting Results</h4><p>In a terminal window, execute the following commands to configure your repository for submitting the certification results:</p><h4>a. Adding GitHub API Token</h4><p>Upon completion, the Pipeline can automatically open a Pull Request to submit your Operator to Red Hat. To enable this functionally, add a GitHub API Token and use --param submit=true when running the pipeline.</p><pre>oc create secret generic github-api-token --from-literal GITHUB_TOKEN=&lt;github token&gt;</pre><p>This GitHub personal access token should have the Repo scope added and all the sub-scopes under Repo. Scopes can be added from the GitHub user interface.</p><h4>b. Adding Red Hat Container API access key</h4><p>This API access key is specifically related to your unique partner account for the Red Hat Connect portal. Instructions to obtain your API key can be found <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/4.9/ga/operator-cert-workflow.md#step-b---get-api-key">here</a>.</p><pre>oc create secret generic pyxis-api-secret --from-literal pyxis_api_key=&lt; API KEY &gt;</pre><h3><strong>Optional Configuration</strong></h3><h4>Optional Step- If using digest pinning (required when submitting to Red Hat)</h4><p>The pipeline offers functionality that will automatically replace all image tags in your Bundle with Image Digest SHAs. This allows the pipeline to ensure it is using a pinned version of all images. The pipeline commits the pinned version of your Bundle to your GitHub repo as a new branch. In order to do this a private key with access to GitHub needs to be added to your cluster as a secret.</p><h4>Add private key to access GitHub repo with Operator Bundle source</h4><p>Base64 encodes a private key with access to the GitHub repo containing the Bundle</p><pre>base64 /path/to/private/key</pre><p>Create a secret that contains the base64 encoded private key.</p><pre>cat &lt;&lt; EOF &gt; ssh-secret.yml<br>kind: Secret<br>apiVersion: v1<br>metadata:<br>  name: github-ssh-credentials<br>data:<br>  id_rsa: |<br>        &lt;base64 encoded private key&gt;<br>EOF</pre><p>Add the secret to the cluster.</p><pre>oc create -f ssh-secret.yml</pre><p><strong>Note:</strong> This step is mandatory to submit the certification results to Red Hat.</p><h4>Optional Step- If using a private container registry</h4><p>By default, the Pipeline will use the OpenShift Container Registry running in the cluster.</p><h4>Add credentials for the Container Registry</h4><p>The Pipeline will automatically build your Operator Bundle Image as well as a Bundle Image Index for testing and verification.</p><p>By default, these images will be created in the container registry on the cluster but if you would like to leverage an external private registry you can provide the credentials by adding a secret to the cluster.</p><pre>oc create secret docker-registry registry-dockerconfig-secret \<br>    --docker-server=quay.io \<br>    --docker-username=&lt;registry username&gt; \<br>    --docker-password=&lt;registry password&gt; \<br>    --docker-email=&lt;registry email&gt;</pre><h3>Execute the OpenShift Operator pipeline</h3><p>You can execute the OpenShift operator pipeline through three different methods. Below are several examples but parameters and workspaces can be removed or added as per your requirements.</p><h4>1. Running the Minimal pipeline</h4><p>This is the most basic pipeline run. It does not include digest pinning, which will be required for submission, but the minimal pipeline run is useful for testing and iteration.</p><p>In a terminal window, execute the following commands to run the minimal pipeline:</p><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt; <br>(ie: <a href="https://github.com/mayurwaghmode/certified-operators.git">https://github.com/mayurwaghmode/certified-operators.git</a>)</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; <br>(ie: operators/my-operator/1.2.8)</pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param env=prod \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><p>After running this command you will be prompted for several additional parameters. Accept all the defaults.</p><h4>2. Running the pipeline with image digest pinning</h4><p>Digest Pinning is required when submitting the results to Red Hat. Container images can be referenced by tags or by SHA digest. For Red Hat Certification, we require the SHA digest for all containers. This requirement is due to the fact that tags are mutable and can be changed underneath us whereas SHA digests are immutable.</p><p><strong>Prerequisites</strong></p><ul><li>Execute the <a href="#4be5">Configuration Steps for Digest Pinning</a></li></ul><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt;</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; (ie: operators/my-operator/1.2.8)</pre><pre>GIT_USERNAME=&lt;your github username&gt;</pre><pre>GIT_EMAIL=&lt;your github email address&gt;<br></pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param env=prod \<br>  --param pin_digests=true \<br>  --param git_username=$GIT_USERNAME \<br>  --param git_email=$GIT_EMAIL \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --workspace name=ssh-dir,secret=github-ssh-credentials \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><p>After running this command you will be prompted for several additional parameters. Accept all the defaults.</p><h4>3. Pipeline Run with a Private Container Registry</h4><p>By default, the Certification Pipeline will run with the OpenShift internal registry. If you want to use a different public or private registry, that is supported as well.</p><p><strong>Prerequisites</strong></p><ul><li>Make sure that you have executed the <a href="#c1e9">Configuration Steps for Private Registries</a></li></ul><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt;</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; (ie: operators/my-operator/1.2.8)</pre><pre>GIT_USERNAME=&lt;your github username&gt;</pre><pre>GIT_EMAIL=&lt;your github email address&gt;</pre><pre>REGISTRY=&lt;your image registry.  ie: quay.io&gt;</pre><pre>IMAGE_NAMESPACE=&lt;namespace in the container registry&gt;</pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param env=prod \<br>  --param pin_digests=true \<br>  --param git_username=$GIT_USERNAME \<br>  --param git_email=$GIT_EMAIL \<br>  --param registry=$REGISTRY \<br>  --param image_namespace=$IMAGE_NAMESPACE \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --workspace name=ssh-dir,secret=github-ssh-credentials \<br>  --workspace name=registry-credentials,secret=registry-dockerconfig-secret \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><p>After running this command you will be prompted for several additional parameters. Accept all the defaults.</p><h3>Submit certification results to Red Hat</h3><p>Follow the below procedure to submit the certification test results to Red Hat.</p><p><strong>Prerequisites</strong></p><ul><li>Make sure that you have executed the <a href="#bd4a">Configuration Steps for Submitting Results</a></li><li>Add the following parameters to the GitHub upstream repository from where you want to submit the pull request for Red Hat certification. It is the Red Hat certification repository by default, but you can use your own repository for testing.</li></ul><pre>--param upstream_repo_name=$UPSTREAM_REPO_NAME #Repo where Pull Request (PR) will be opened</pre><pre>--param submit=true</pre><p>You can submit the Red Hat certification test results for four different scenarios:</p><h4>1. Submit test results from the minimal pipeline</h4><p>Again, the minimal pipeline run is useful for testing and iteration.</p><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt;</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; (ie: operators/my-operator/1.2.8)</pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param upstream_repo_name=redhat-openshift-ecosystem/certified-operators \<br>  --param submit=true \<br>  --param env=prod \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><h4>2. Submit results with Image Digest Pinning</h4><p>For Red Hat Certification this pipeline run is required.</p><p><strong>Prerequisites</strong></p><ul><li>Execute the <a href="#bd4a">Configuration Steps for Submitting Results</a></li><li>Execute the <a href="#4be5">Configuration Steps for Digest Pinning</a></li></ul><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt;</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; (ie: operators/my-operator/1.2.8)</pre><pre>GIT_USERNAME=&lt;your github username&gt;</pre><pre>GIT_EMAIL=&lt;your github email address&gt;</pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param env=prod \<br>  --param pin_digests=true \<br>  --param git_username=$GIT_USERNAME \<br>  --param git_email=$GIT_EMAIL \<br>  --param upstream_repo_name=redhat-openshift-ecosystem/certified-operators \<br>  --param submit=true \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --workspace name=ssh-dir,secret=github-ssh-credentials \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><p>After running this command you will be prompted for several additional parameters. Accept all the defaults.</p><h4>3. Submit results with a private container registry</h4><p><strong>Prerequisites</strong></p><ul><li>Execute the <a href="#bd4a">Configuration Steps for Submitting Results</a></li><li>Execute the <a href="#c1e9">Configuration Steps for Private Registries</a></li></ul><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt;</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; (ie: operators/my-operator/1.2.8)</pre><pre>GIT_USERNAME=&lt;your github username&gt;</pre><pre>GIT_EMAIL=&lt;your github email address&gt;</pre><pre>REGISTRY=&lt;your image registry.  ie: quay.io&gt;</pre><pre>IMAGE_NAMESPACE=&lt;namespace in the container registry&gt;</pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param env=prod \<br>  --param pin_digests=true \<br>  --param git_username=$GIT_USERNAME \<br>  --param git_email=$GIT_EMAIL \<br>  --param registry=$REGISTRY \<br>  --param image_namespace=$IMAGE_NAMESPACE \<br>  --param upstream_repo_name=redhat-openshift-ecosystem/certified-operators \<br>  --param submit=true \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --workspace name=ssh-dir,secret=github-ssh-credentials \<br>  --workspace name=registry-credentials,secret=registry-dockerconfig-secret \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><h4>4. Submit results with Image Digest Pinning and a private container registry</h4><p><strong>Prerequisites</strong></p><ul><li>Execute the <a href="#bd4a">Configuration Steps for Submitting Results</a></li><li>Execute the <a href="#4be5">Configuration Steps for Digest Pinning</a></li><li>Execute the<a href="#c1e9"> Configuration Steps for Private Registries</a></li></ul><pre>GIT_REPO_URL=&lt;Git URL to your certified-operators fork &gt;</pre><pre>BUNDLE_PATH=&lt;path to the bundle in the Git Repo&gt; (ie: operators/my-operator/1.2.8)</pre><pre>GIT_USERNAME=&lt;your github username&gt;</pre><pre>GIT_EMAIL=&lt;your github email address&gt;</pre><pre>REGISTRY=&lt;your image registry.  ie: quay.io&gt;</pre><pre>IMAGE_NAMESPACE=&lt;namespace in the container registry&gt;</pre><pre>tkn pipeline start operator-ci-pipeline \<br>  --param git_repo_url=$GIT_REPO_URL \<br>  --param git_branch=main \<br>  --param bundle_path=$BUNDLE_PATH \<br>  --param env=prod \<br>  --param pin_digests=true \<br>  --param git_username=$GIT_USERNAME \<br>  --param git_email=$GIT_EMAIL \<br>  --param upstream_repo_name=redhat-openshift-ecosystem/certified-operators \<br>  --param registry=$REGISTRY \<br>  --param image_namespace=$IMAGE_NAMESPACE \<br>  --param submit=true \<br>  --workspace name=pipeline,volumeClaimTemplateFile=templates/workspace-template.yml \<br>  --workspace name=ssh-dir,secret=github-ssh-credentials \<br>  --workspace name=registry-credentials,secret=registry-dockerconfig-secret \<br>  --pod-template templates/crc-pod-template.yml \<br>  --showlog</pre><h3>Fix Issues</h3><p>When you execute the pipeline you will be able to view logs that contain details about any errors or failures that will need to be addressed before obtaining certification.</p><h4>Reading logs from the terminal</h4><p>When executing the pipeline using the tkn CLI tool logs will be printed in the terminal.</p><h4>Viewing logs in the console</h4><p>If you have access to the OpenShift Console you can review the results of the pipeline and the logs in the Console as well.</p><p>Once you have successful results for all the certification checks then your pull request will be sent to the upstream repository for verification and publication in the Operator catalog. Your pull request will trigger the Operator hosted pipeline, it will need to again pass all the certification checks if you faced any issue, then follow <a href="https://github.com/redhat-openshift-ecosystem/certification-releases/blob/main/4.9/ga/troubleshooting.md">this guide</a> to resolve the issues. You don’t need to re-run the CI pipeline again.</p><p>After successful certification, the certified product gets listed on <a href="https://access.redhat.com/ecosystem/search/#/category/">Red Hat Ecosystem Catalog</a>.</p><p>Certified operators are listed in and consumed by customers through the embedded OpenShift operatorHub, providing them the ability to easily deploy and run your solution. Additionally, your product and operator image will be listed on the <a href="https://access.redhat.com/ecosystem/search/#/category/">Red Hat Ecosystem Catalog</a>.</p><h3><strong>Troubleshooting</strong></h3><p>If you see a below error in pipeline logs, then create the new Kubeconfig secret, by deleting the old one. Re-run the pipeline again.</p><p><strong>error: the server doesn’t have a resource type “clusterversion”</strong></p><pre>//Login to the Openshift cluster <br>oc login -u kubeadmin -p &lt;kubepassword&gt;</pre><pre>//Delete current kubeconfig secret <br>oc delete secret kubeconfig</pre><pre>//set the Kubconfig variable<br>export KUBECONFIG=/root/.kube/config</pre><pre>//Create the kubeconfig secret again<br>oc create secret generic kubeconfig --from-file=kubeconfig=$KUBECONFIG</pre><p>Thanks for reading! I hope you found this tutorial helpful :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ad34a0d26a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>