Knative Hello World - PHP

1 개요[ | ]

Knative Hello World - PHP
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.
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"
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
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 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}