GithubHelp home page GithubHelp logo

Comments (7)

brendandburns avatar brendandburns commented on May 10, 2024

Just don't call it config... ;)

from kubernetes.

bgrant0607 avatar bgrant0607 commented on May 10, 2024

For now, we should ensure that it's straightforward to write robust, idempotent "up" and "down" scripts with our tools and APIs. I'd lump a more general declarative approach with update support.

from kubernetes.

bgrant0607 avatar bgrant0607 commented on May 10, 2024

I filed another issue for idempotent creation (#148). We can use this issue for multi-resource declarative configuration, starting with up/down.

from kubernetes.

bgrant0607 avatar bgrant0607 commented on May 10, 2024

@smarterclayton @brendandburns I suggest we use this issue to discuss literal (i.e., without parameterization and inheritance) instantiation of multiple objects.

from kubernetes.

smarterclayton avatar smarterclayton commented on May 10, 2024

Namespace is inferred on creation - should it also be inferred on deletion? We don't have auto-naming yet, so we don't have unnamed resources.

from kubernetes.

bgrant0607 avatar bgrant0607 commented on May 10, 2024

Closing in favor of #1905, which has more detail.

from kubernetes.

maicohjf avatar maicohjf commented on May 10, 2024

People are going to want to write scripts to bring an entire service up/down. We should provide a standard way of doing so now, or everyone is going to roll their own. This could mean python api bindings and a template or something else (a better go client library?).

Create a deployment spec file that will:
 Launch 7 replicas of the redis image with the label: app_env_stage=dev
 Deployment name: kual00201
Save a copy of this spec file to /opt/KUAL00201/deploy_spec.yaml (or .json)
When you are done, clean up (delete) any new k8s API objects that you produced during this task

apiVersion: apps/v1
kind: Deployment
metadata:
name: kual00201
spec:
replicas: 7
selector:
matchLabels:
app_env_stage: dev
template:
metadata:
labels:
app_env_stage: dev
spec:
containers:
- name: redis
image: redis
kubectl create -f kual00201.yaml
cp kual00201.yaml /opt/KUAL00201/deploy_spec.yaml
可以输出
kubectl delete deploy kual00201

from kubernetes.

Related Issues (20)

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.