1 개요[ | ]
- Knative Hello World - PHP
Console
Copy
testuser@localhost$ git clone https://github.com/knative/docs knative-docs
Cloning into 'knative-docs'...
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 23300 (delta 19), reused 2 (delta 0), pack-reused 23261
Receiving objects: 100% (23300/23300), 34.92 MiB | 11.27 MiB/s, done.
Resolving deltas: 100% (14758/14758), done.
Console
Copy
testuser@localhost:~$ sed 's/{username}/jmnote/' knative-docs/docs/serving/samples/hello-world/helloworld-php/service.yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: helloworld-php
namespace: default
spec:
template:
spec:
containers:
- image: docker.io/jmnote/helloworld-php
env:
- name: TARGET
value: "PHP Sample v1"
Console
Copy
testuser@localhost:~$ sed 's/{username}/jmnote/' knative-docs/docs/serving/samples/hello-world/helloworld-php/service.yaml | kubectl apply -f -
service.serving.knative.dev/helloworld-php created
Console
Copy
testuser@localhost:~$ kubectl get ksvc helloworld-php --output=custom-columns=NAME:.metadata.name,URL:.status.url
NAME URL
helloworld-php http://helloworld-php.default.example.com
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.