mirror of https://github.com/knative/docs.git
fixed indentation issue with heading (#3972)
* fixed indentation issue with heading * Update README.md * more indentation changes * RunAsNonRoot can be set to true without the feature flag (#3969) * Update docs/serving/samples/hello-world/helloworld-python/README.md Co-authored-by: Julian Friedman <julz.friedman@uk.ibm.com> Co-authored-by: Senthilnathan M <216394+senthilnathan@users.noreply.github.com> Co-authored-by: Omer B <obensaadon@vmware.com> Co-authored-by: Julian Friedman <julz.friedman@uk.ibm.com>
This commit is contained in:
parent
3b06dc9a8c
commit
498132a97d
|
@ -113,13 +113,13 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-python
|
||||||
1. After the build has completed and the container is pushed to Docker Hub, you
|
1. After the build has completed and the container is pushed to Docker Hub, you
|
||||||
can deploy the app into your cluster.
|
can deploy the app into your cluster.
|
||||||
|
|
||||||
=== "yaml"
|
=== "yaml"
|
||||||
|
|
||||||
1. Create a new file, `service.yaml` and copy the following service
|
1. Create a new file, `service.yaml` and copy the following service
|
||||||
definition into the file. Make sure to replace `{username}` with your
|
definition into the file. Make sure to replace `{username}` with your
|
||||||
Docker Hub username or with the URL provided by your container registry
|
Docker Hub username or with the URL provided by your container registry
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -133,7 +133,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-python
|
||||||
env:
|
env:
|
||||||
- name: TARGET
|
- name: TARGET
|
||||||
value: "Python Sample v1"
|
value: "Python Sample v1"
|
||||||
```
|
```
|
||||||
|
|
||||||
Ensure that the container image value in `service.yaml` matches the container
|
Ensure that the container image value in `service.yaml` matches the container
|
||||||
you built in the previous step. Apply the configuration using `kubectl`:
|
you built in the previous step. Apply the configuration using `kubectl`:
|
||||||
|
@ -170,10 +170,12 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-python
|
||||||
> Note: If your URL includes `example.com` then consult the setup instructions for
|
> Note: If your URL includes `example.com` then consult the setup instructions for
|
||||||
> configuring DNS (e.g. with `sslip.io`), or [using a Custom Domain](../serving/using-a-custom-domain).
|
> configuring DNS (e.g. with `sslip.io`), or [using a Custom Domain](../serving/using-a-custom-domain).
|
||||||
|
|
||||||
=== "kubectl"
|
=== "kubectl"
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl get ksvc helloworld-python --output=custom-columns=NAME:.metadata.name,URL:.status.url
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
|
||||||
kubectl get ksvc helloworld-python --output=custom-columns=NAME:.metadata.name,URL:.status.url
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
Loading…
Reference in New Issue