Code Monkey home page Code Monkey logo

week-5's Introduction

Yaml examples

NAME PROMPT DESCRIPTION EXAMPLE
App k ai "create pod with name app, and labels app:demo and app:run. Use this container image - gcr.io/gbot-418317/demo:v1.0.0 and set container with name - app and on port 8000 and port name http." Pod with image app.yaml
Liveness probe k ai "create pod with name app-livenessprob and image gcr.io/gbot-418317/demo:v1.0.0 with name app on namespace demo.Include livenessProbe with get request on port 8000 with path / and initial delay 5 and timeout seconds 1 and period seconds 10 and failure treshold 3. Containers works on 8080 and port name http" Liveness Probe app-livenessProbe.yaml
Readiness probe k ai "create pod with name app-readiness and image gcr.io/gbot-418317/demo:v2.0.0 with name app. Include livenessProbe with get request on port 8000 with path / and initial delay 5 and timeout seconds 1 and period seconds 10 and failure treshold 3. Containers works on 8000 and port name http. Also readinessProbe with path /ready with port 8000 and period seconds 2 and initial delay seconds 0 and failure treshold 3 and success treshold 1" Readiness Probe app-readinessProbe.yaml
Volume mounts k ai "create pod with name app-volume and image gcr.io/kuar-demo/kuard-amd64:1 with name app.Include livenessProbe with get request on port 8080 with path /healthy and initial delay 5 and timeout seconds 1 and period seconds 10 and failure treshold 3. Containers works on 8080 and port name http. Also readinessProbe with path /ready with port 8080 and period seconds 2 and initial delay seconds 0 and failure treshold 3 and success treshold 1. VolumeMounts with mount path /data and mount name data. Volumes with name data and host path /var/lib/app" Very cal development or CI. Running in docker. app-volumeMounts.yaml
Cronjob k ai "create cronjob with name app-cronjob and shedule every 5 minutes. Image bash command echo 'Hello world'. Restart policy on failure" Cron job manifest app-cronjob.yaml
Job k ai "create job with name app-job-rsync. Add volumes data-input and gcePersistentDisk with pdName glow-data-disk-200 and type - ext4. Container name init and image google/cloud-sdk:275.0.0-alpine and command /bin/sh, -c, gsutil -m rsync -dr gs://glow-sportradar/ /data/input andadd volume mounts name data-input and path /data/input. restart policy never .backoffLimit 0" Job manifest app-job.yaml
Multi container k ai "create pod with name app-multi-containers. Volumes name html. Container first name - 1st and image nginx with volumeMounts name html and path /usr/share/nginx/html. Next container name 2nd image debian and volumeMounts name html and path /html and command /bin/sh, -c and args where loop every second write date into /html/index.html" Multi container manifest app-multicontainer.yaml
Resources k ai "create pod with name app-resource and image gcr.io/kuar-demo/kuard-amd64:1 with name app. Include livenessProbe with get request on port 8080 with path /healty and initial delay 5 and timeout seconds 1 and period seconds 10 and failure treshold 3. Containers works on 8080 and port name http. Also readinessProbe with path /ready with port 8080 and period seconds 2 and initial delay seconds 0 and failure treshold 3 and success treshold 1. Add resources request cpu 100m and memory 128Mi, limits cpu 100m and memory 256Mi" Resources and limits app-resources.yaml
Secret env k ai "create pod with name app-secret-env. Container with name mycontainer and image redis and env name SECRET_USERNAME where valueFrom secretKeyRef name mysecret1 and key username, and second env name SECRET_PASSWORD with valueFrom secretKeyRef name mysecret1 and key password. restart policy never" Secrets manifest app-secret-env.yaml

week-5's People

Contributors

stas727 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.