Skip to content

Commit 87eb909

Browse files
reviewed and fixed
1 parent 3a99746 commit 87eb909

File tree

1 file changed

+6
-6
lines changed
  • app-dev/devops-and-containers/devops/azure-devops-oke

1 file changed

+6
-6
lines changed

app-dev/devops-and-containers/devops/azure-devops-oke/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Reviewed: 29.10.2024
5252

5353
# When to use this asset?
5454

55-
Anyone who wants to do CI/CD from Azure DevOps to deploy and run containers on Oracle Kubernetes Engine (OKE).
55+
Anyone who wants to do CI/CD from Azure DevOps to deploy and run containers on Oracle Kubernetes Engine (OKE) using Azure DevOps native tasks.
5656

5757
# Author
5858
<a href="https://github.com/mikarinneoracle">mikarinneoracle</a>
@@ -68,7 +68,7 @@ To make this build and deploy to OKE to work is not a big task. First copy the f
6868
Before building the Docker image repo needs to be created under the desired <code>compartment</code>. This can be easily done using OCI Cloud UI. Name the repository as <b><i>Azure-test</i></b>, for example.
6969

7070
<p>
71-
Then modify the <code>deployment.yaml</code> <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/azure-devops-oke/deployment.yaml#L19">line 19</a> by replacing the &lt;TENANCY_NAMESPACE&gt; with yours and if you gave another name for the OCIR repo then modify also that here, too. Modify also the <code>region</code> if using some other OCI region than <b><i>fra.ocir.io</i></b>.
71+
Then modify the <code>deployment.yaml</code> <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/azure-devops-oke/files/deployment.yaml#L19">line 19</a> by replacing the &lt;TENANCY_NAMESPACE&gt; with yours and if you gave another name for the OCIR repo then modify also that here, too. Modify also the <code>region</code> if using some other OCI region than <b><i>fra.ocir.io</i></b>.
7272

7373
<p>
7474
To be able to do <code>Docker login</code> to the repo create <code>auth token</code> for your OCI user unless you already have one.
@@ -82,7 +82,7 @@ Once the OKE cluster is up and running with <code>kubectl</code> access setup th
8282
<a href="https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengaddingserviceaccttoken.htm" target="_NEW">https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengaddingserviceaccttoken.htm</a>.
8383

8484
<p>
85-
Name the secret <b><i>oke-kubeconfig-azure-token</i></b> as in <code>azure-token.yaml</code> <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/azure-devops-oke/azure-token.yaml#L4" target="_NEW">line 4</a>.
85+
Name the secret <b><i>oke-kubeconfig-azure-token</i></b> as in <code>azure-token.yaml</code> <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/azure-devops-oke/files/azure-token.yaml#L4" target="_NEW">line 4</a>.
8686

8787
## Setup Azure DevOps OCI connections for OKE and OCIR
8888

@@ -117,22 +117,22 @@ Edit the created pipeline and select <code>Variables</code> to create them as fo
117117

118118
<ul>
119119
<li>CONTAINER_REGISTRY: OCIR</li>
120-
<li>CONTAINER_REPOSITORY: Use the same name as in the <code>deployment.yaml</code> <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/azure-devops-oke/deployment.yaml#L19">line 19</a> but <b><i>without</i></b> the <code>region</code> and the <code>tag</code> ("1" in the example YAML file) e.g. <b><i>&lt;TENANCY_NAMESPACE&gt;/azure-test</i></b></li>
120+
<li>CONTAINER_REPOSITORY: Use the same name as in the <code>deployment.yaml</code> <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/azure-devops-oke/files/deployment.yaml#L19">line 19</a> but <b><i>without</i></b> the <code>region</code> and the <code>tag</code> ("1" in the example YAML file) e.g. <b><i>&lt;TENANCY_NAMESPACE&gt;/azure-test</i></b></li>
121121
<li>containerImageFullNameForK8sDeploy: The same as above but with the OCI region e.g. <b><i>fra.ocir.io/&lt;TENANCY_NAMESPACE&gt;/azure-test</i></b></li>
122122
<li>K8S_CONNECTION_NAME: OKE</li>
123123
<li>K8S_NAMESPACE: default</li>
124124
<li>OcirPullSecret: ocirsecret</li>
125125
</ul>
126126

127127
<p>
128-
<img src="pipeline-vars.png" width="800" />
128+
<img src="files/pipeline-vars.png" width="800" />
129129

130130
## Run the pipeline
131131

132132
Pipeline runs automatically after commiting changes and when all of the above are properly set it should complete succesfully.
133133

134134
<p>
135-
<img src="azure-devops-oke.png" width="800" />
135+
<img src="files/azure-devops-oke.png" width="800" />
136136

137137
<p>
138138
Pipeline will create a Kubernetes <b><i>load balancer</i></b> service to provide a public access point to the pod in the OKE cluster:

0 commit comments

Comments
 (0)