sample

command
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

net-http01 sample

This small sample can be used to test the core libraries without all of the rest of knative.dev/serving.

Instructions:

  1. Deploy the load balance service.

    kubectl apply -f cmd/sample/service.yaml
    
  2. Wait for the service to receive an IP or CNAME.

    watch kubectl get svc sample
    
  3. Configure a DNS record for the IP or Hostname.

    If the service has an external IP, create an A record.

    If the service has a hostname, create a CNAME record.

  4. Wait for the DNS record to go live.

    watch dig your-domain-name.io
    
  5. Edit sample.yaml to pass the domain name.

    args:
      - "-domain=your-domain-name.io"
    
  6. Deploy the application.

    ko apply -Bf cmd/sample/sample.yaml
    
  7. Curl the application:

    watch curl https://your-domain-name.io
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL