HUB
Sign inSign up

lucidprogrammer/web1

By lucidprogrammer

•Updated almost 7 years ago

Image
0

1.4K

lucidprogrammer/web1 repository overview

⁠Example for using rio to watch a repo

Rio brings up the service definition⁠ with values⁠. Compare it with the complexity of the various K8 yamls. With the ability to do an end to end CI/CD, it makes it easy for apps in K8s. Example secrets used are available here⁠. Just to be clear, the secret folder is shown to show how the yamls are structured. Keep it in something like s3 and put the secrets folder in .gitignore. Alternatively you could use bitnami sealed secrets.

Refer to riofile README⁠ for detailed documentation.

namespace=something
kubectl create namespace ${namespace}
# based on your situation, you may have application level secrets to be created
# kubectl apply -f deployments/secrets
# if you have a private git repo, docker registry, you can use the above approach or you can create them using rio itself
# if you have build instructions and want to push to a private registry
# rio secrets create --docker
# since you wish to watch a repo for changes on the stack definition, rio must have the ability to create a webhook in your repository
# rio secrets create --github-webhook 
# try rio secrets create --help to see other options.
# make sure you pass --build-clone-secret gitcredential if you are having a private git repo
gituser=lucidprogrammer
rio -n ${namespace} up --name somename  --push-registry-secret dockerconfig \
    --file deployments/my-stack.yaml --build-webhook-secret githubtoken\
    --answers deployments/values-my-stack.json https://github.com/${gituser}/rio-samples.git

# you should be able to see the autoscaling in action with the following

hey -z 600s -c 60 endpointurlofweb1service

⁠Routing sample

domainrouteheaderservicenamespace
app.acme.com/no headersdiscoverdefault
app.acme.com/someorg=customer1,app=someweb1customer1
app.acme.com/someorg=customer2,app=someweb2customer2
Tag summary
Recent tags
Content type
Image
Digest
Size
39.3 MB
Last updated
almost 7 years ago
docker pull lucidprogrammer/web1:latest