Comments (7)
Just don't call it config... ;)
from kubernetes.
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.
I filed another issue for idempotent creation (#148). We can use this issue for multi-resource declarative configuration, starting with up/down.
from kubernetes.
@smarterclayton @brendandburns I suggest we use this issue to discuss literal (i.e., without parameterization and inheritance) instantiation of multiple objects.
from kubernetes.
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.
Closing in favor of #1905, which has more detail.
from kubernetes.
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)
- Implement `apiserver_watch_cache_read_wait` metric HOT 2
- Implement per-request watch cache opt-out HOT 3
- ContainerResource: add tests for switching the feature gate HOT 3
- Implement checking etcd version to warn about deprecated etcd versions HOT 6
- Intree volume tests are failing on containerd-e2e-ubuntu HOT 4
- etcd-master pod is deleted HOT 4
- Add jitter/randomness to pod restart exponential backoffs (for pods in CrashLoopBackoff) HOT 4
- [Failing Test] `pull-kubernetes-verify` and `pull-kubernetes-e2e-gce` HOT 4
- Treat liveness probe-based restarts as voluntary disruptions gated by PodDisruptionBudgets HOT 18
- Aggregated API Server readiness check fails on v1.27 HOT 2
- [kubeadm] Apparently, it's not possible to change the Node CIDR Mask Size HOT 10
- Enhancement: Improving control over parallel Execution parameter [--p] in E2E. HOT 2
- Pods stucked in pending status HOT 6
- Updating a CronjobSpec.schedule causes scheduling a new job at unexpected time. HOT 2
- Jobs should display whether or not they are suspended. HOT 9
- Scheduler: use `Pending` state in in-tree plugins HOT 3
- Unable to fetch container log stats: failed to get fsstats HOT 8
- Daemonset RollingUpdate does not correctly count old non-ready pods towards MaxUnavailable budget HOT 2
- Make `fmt.Errorf` use `%w` to wrap error instead of `%v` HOT 19
- Failure cluster [5fafdf38...] nfs related tests are failing since 2/7 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes.