Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redudant steps from instruction #41953

Merged
merged 19 commits into from
Oct 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9edfc0b
Remove redudant steps from instruction
hasanrashid Jul 9, 2023
a52a5db
Update content/en/docs/tutorials/services/connect-applications-servic…
hasanrashid Jul 12, 2023
92d98fb
Update content/en/docs/tutorials/services/connect-applications-servic…
hasanrashid Jul 12, 2023
df2ef8b
Update content/en/docs/tutorials/services/connect-applications-servic…
hasanrashid Jul 12, 2023
371ec01
Update content/en/docs/tutorials/services/connect-applications-servic…
hasanrashid Jul 12, 2023
5754184
Merge branch 'kubernetes:main' into main
hasanrashid Jul 30, 2023
b2ac039
Update content/en/docs/tutorials/services/connect-applications-servic…
hasanrashid Jul 30, 2023
08aec33
Update content/en/docs/tutorials/services/connect-applications-servic…
hasanrashid Jul 30, 2023
848422d
Change line 313, and add missing line
hasanrashid Jul 30, 2023
e857535
Merge branch 'kubernetes:main' into main
hasanrashid Aug 7, 2023
a719a4a
Fix missing command end on line 313
hasanrashid Aug 7, 2023
09d3e6e
Merge branch 'kubernetes:main' into main
hasanrashid Aug 7, 2023
458ea1f
Merge branch 'kubernetes:main' into main
hasanrashid Aug 12, 2023
69bb6e1
Merge branch 'kubernetes:main' into main
hasanrashid Aug 13, 2023
e8be541
Merge branch 'kubernetes:main' into main
hasanrashid Aug 13, 2023
b6dde52
Merge branch 'kubernetes:main' into main
hasanrashid Aug 13, 2023
8e1c804
Merge branch 'kubernetes:main' into main
hasanrashid Aug 22, 2023
2d06a10
Merge branch 'kubernetes:main' into main
hasanrashid Aug 27, 2023
e728701
Update connect-applications-service.md
tengqm Oct 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 46 additions & 5 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,8 @@ And also the configmap:
```shell
kubectl create configmap nginxconfigmap --from-file=default.conf
```
Note: the default.conf is located in [https://github.com/kubernetes/examples/tree/master/staging/https-nginx/](https://github.com/kubernetes/examples/tree/master/staging/https-nginx/)
hasanrashid marked this conversation as resolved.
Show resolved Hide resolved

```
configmap/nginxconfigmap created
```
Expand All @@ -302,6 +304,47 @@ kubectl get configmaps
NAME DATA AGE
nginxconfigmap 1 114s
```

Details of the configmap ```nginxconfigmap``` can be viewed with the following command
hasanrashid marked this conversation as resolved.
Show resolved Hide resolved
```
kubectl describe cm nginxconfigmap
```
hasanrashid marked this conversation as resolved.
Show resolved Hide resolved
The output can look like the following
hasanrashid marked this conversation as resolved.
Show resolved Hide resolved

hasanrashid marked this conversation as resolved.
Show resolved Hide resolved
```
sftim marked this conversation as resolved.
Show resolved Hide resolved
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 +354,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
```

<!--
hasanrashid marked this conversation as resolved.
Show resolved Hide resolved
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 All @@ -336,7 +379,7 @@ kubectl get secrets
NAME TYPE DATA AGE
nginxsecret kubernetes.io/tls 2 1m
```

-->
Now modify your nginx replicas to start an https server using the certificate
in the secret, and the Service, to expose both ports (80 and 443):

Expand Down Expand Up @@ -475,6 +518,4 @@ 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/)


* Learn more about [Creating an External Load Balancer](/docs/tasks/access-application-cluster/create-external-load-balancer/)