Skip to content

Commit

Permalink
Remove redudant steps from instruction (#41953)
Browse files Browse the repository at this point in the history
* Remove redudant steps from instruction

* Update content/en/docs/tutorials/services/connect-applications-service.md

Co-authored-by: Michael <[email protected]>

* Update content/en/docs/tutorials/services/connect-applications-service.md

Co-authored-by: Michael <[email protected]>

* Update content/en/docs/tutorials/services/connect-applications-service.md

Co-authored-by: Michael <[email protected]>

* Update content/en/docs/tutorials/services/connect-applications-service.md

Co-authored-by: Michael <[email protected]>

* Update content/en/docs/tutorials/services/connect-applications-service.md

Co-authored-by: Tim Bannister <[email protected]>

* Update content/en/docs/tutorials/services/connect-applications-service.md

Co-authored-by: Michael <[email protected]>

* Change line 313, and add missing line

* Fix missing command end on line 313

* Update connect-applications-service.md

---------

Co-authored-by: Michael <[email protected]>
Co-authored-by: Tim Bannister <[email protected]>
Co-authored-by: Qiming Teng <[email protected]>
  • Loading branch information
4 people authored Oct 10, 2023
1 parent 14f30b5 commit 972a467
Showing 1 changed file with 48 additions and 3 deletions.
51 changes: 48 additions & 3 deletions content/en/docs/tutorials/services/connect-applications-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ And also the configmap:
```shell
kubectl create configmap nginxconfigmap --from-file=default.conf
```
You can find an example for `default.conf` in
[the Kubernetes examples project repo](https://github.com/kubernetes/examples/tree/bc9ca4ca32bb28762ef216386934bef20f1f9930/staging/https-nginx/).
```
configmap/nginxconfigmap created
```
Expand All @@ -302,6 +306,49 @@ kubectl get configmaps
NAME DATA AGE
nginxconfigmap 1 114s
```
You can view the details of the `nginxconfigmap` ConfigMap using the following command:
```shell
kubectl describe configmap nginxconfigmap
```
The output is similar to:
```console
Name: nginxconfigmap
Namespace: default
Labels: <none>
Annotations: <none>
Data
====
default.conf:
----
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
root /usr/share/nginx/html;
index index.html;
server_name localhost;
ssl_certificate /etc/nginx/ssl/tls.crt;
ssl_certificate_key /etc/nginx/ssl/tls.key;
location / {
try_files $uri $uri/ =404;
}
}
BinaryData
====
Events: <none>
```
Following are the manual steps to follow in case you run into problems running make (on windows for example):
```shell
Expand All @@ -311,7 +358,7 @@ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /d/tmp/nginx.key -ou
cat /d/tmp/nginx.crt | base64
cat /d/tmp/nginx.key | base64
```
Use the output from the previous commands to create a yaml file as follows.
The base64 encoded value should all be on a single line.
Expand Down Expand Up @@ -476,5 +523,3 @@ LoadBalancer Ingress: a320587ffd19711e5a37606cf4a74574-1142138393.us-east-1.el
* Learn more about [Using a Service to Access an Application in a Cluster](/docs/tasks/access-application-cluster/service-access-application-cluster/)
* Learn more about [Connecting a Front End to a Back End Using a Service](/docs/tasks/access-application-cluster/connecting-frontend-backend/)
* Learn more about [Creating an External Load Balancer](/docs/tasks/access-application-cluster/create-external-load-balancer/)

0 comments on commit 972a467

Please sign in to comment.