diff --git a/docs/introduction.md b/docs/introduction.md index 5b4fe595e..4fe426055 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -17,14 +17,15 @@ Why do people love Kedge? ```yaml name: httpd + containers: - image: centos/httpd + services: - name: httpd -type: NodePort -ports: -- port: 8080 -targetPort: 80 + type: LoadBalancer + portMappings: + - 8080:80 ``` {: .demo-code } diff --git a/examples/httpd/httpd.yaml b/examples/httpd/httpd.yaml new file mode 100644 index 000000000..af44b0a39 --- /dev/null +++ b/examples/httpd/httpd.yaml @@ -0,0 +1,10 @@ +name: httpd + +containers: +- image: centos/httpd + +services: +- name: httpd + type: LoadBalancer + portMappings: + - 8080:80