Comments (10)
From @kemcake on July 22, 2016 14:50
Is there a lot of parameters we can change ? Being able to edit the yaml can be simple, but not really nice/practical on a mobile phone :/
from cabin.
let's just do the image for now, which could be for example:
mysql:5.5
changed to
mysql:5.6
from cabin.
From @kemcake on July 22, 2016 14:56
So I can just add an editable field for the image in the RC/Deployment show view and perform a Patch request ? :)
from cabin.
yes....
in kubectl it is kubectl apply
.
this is only for Deployments.
from cabin.
From @kemcake on July 22, 2016 15:1
But the image depends on the container right ?
So for each Container in a Deployment we should be able de edit the image ?
from cabin.
correct, a deployment starts pod, and there could be multiple container in a pod.
so possible multiple images to change
On Jul 22, 2016, at 5:01 PM, Rémi Santos [email protected] wrote:
But the image depends on the container right ?
So for each Container in a Deployment we should be able de edit the image ?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/skippbox/cabin/issues/27#issuecomment-234567870, or mute the thread https://github.com/notifications/unsubscribe-auth/ABzIWx-N1HGNP-WJsDTfLAAVaY33xo5Nks5qYNs3gaJpZM4JKVI7.
from cabin.
From @kemcake on August 1, 2016 12:43
I've started implementing the UI (Three dots in RC view, then enter the new image)
But I don't understand how a rolling update works, seems like we have to implement it by hand, but can't manage to make rolling update works on my cluster to see what api calls are made.
Need clarifications...
from cabin.
so here is more details with the kubectl edit
command.
Basically send a patch request changing the Pod template defined in a deployment.
We only do this for deployments, not for RC.
We only allow to change the image (for now...)
$ kubectl get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
nginx 1 1 1 1 12m
sebair: kubernetes $ kubectl --v=99 edit deployment nginx
I0808 15:08:43.886786 36976 loader.go:229] Config loaded from file /Users/sebastiengoasguen/.kube/config
I0808 15:08:43.888110 36976 round_trippers.go:267] curl -k -v -XGET -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.2.5 (darwin/amd64) kubernetes/25eb53b" -H "Authorization: Basic Zm9vYmFyOkZkS1BTdXdR" https://185.19.30.238:443/api
I0808 15:08:44.023170 36976 round_trippers.go:286] GET https://185.19.30.238:443/api 200 OK in 135 milliseconds
I0808 15:08:44.023264 36976 round_trippers.go:292] Response Headers:
I0808 15:08:44.023306 36976 round_trippers.go:295] Content-Type: application/json
I0808 15:08:44.023351 36976 round_trippers.go:295] Date: Mon, 08 Aug 2016 13:08:44 GMT
I0808 15:08:44.023390 36976 round_trippers.go:295] Content-Length: 135
I0808 15:08:44.023721 36976 request.go:870] Response Body: {"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]}
I0808 15:08:44.024492 36976 round_trippers.go:267] curl -k -v -XGET -H "User-Agent: kubectl/v1.2.5 (darwin/amd64) kubernetes/25eb53b" -H "Authorization: Basic Zm9vYmFyOkZkS1BTdXdR" -H "Accept: application/json, */*" https://185.19.30.238:443/apis
I0808 15:08:44.058070 36976 round_trippers.go:286] GET https://185.19.30.238:443/apis 200 OK in 33 milliseconds
I0808 15:08:44.058191 36976 round_trippers.go:292] Response Headers:
I0808 15:08:44.058222 36976 round_trippers.go:295] Content-Type: application/json
I0808 15:08:44.058246 36976 round_trippers.go:295] Date: Mon, 08 Aug 2016 13:08:44 GMT
I0808 15:08:44.058268 36976 round_trippers.go:295] Content-Length: 1649
I0808 15:08:44.058408 36976 request.go:870] Response Body: {"kind":"APIGroupList","groups":[{"name":"apps","versions":[{"groupVersion":"apps/v1alpha1","version":"v1alpha1"}],"preferredVersion":{"groupVersion":"apps/v1alpha1","version":"v1alpha1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"autoscaling","versions":[{"groupVersion":"autoscaling/v1","version":"v1"}],"preferredVersion":{"groupVersion":"autoscaling/v1","version":"v1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"batch","versions":[{"groupVersion":"batch/v1","version":"v1"},{"groupVersion":"batch/v2alpha1","version":"v2alpha1"}],"preferredVersion":{"groupVersion":"batch/v1","version":"v1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"extensions","versions":[{"groupVersion":"extensions/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"extensions/v1beta1","version":"v1beta1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"policy","versions":[{"groupVersion":"policy/v1alpha1","version":"v1alpha1"}],"preferredVersion":{"groupVersion":"policy/v1alpha1","version":"v1alpha1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"rbac.authorization.k8s.io","versions":[{"groupVersion":"rbac.authorization.k8s.io/v1alpha1","version":"v1alpha1"}],"preferredVersion":{"groupVersion":"rbac.authorization.k8s.io/v1alpha1","version":"v1alpha1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]}]}
I0808 15:08:44.060256 36976 round_trippers.go:267] curl -k -v -XGET -H "User-Agent: kubectl/v1.2.5 (darwin/amd64) kubernetes/25eb53b" -H "Authorization: Basic Zm9vYmFyOkZkS1BTdXdR" -H "Accept: application/json, */*" https://185.19.30.238:443/apis/extensions/v1beta1/namespaces/default/deployments/nginx
I0808 15:08:44.094412 36976 round_trippers.go:286] GET https://185.19.30.238:443/apis/extensions/v1beta1/namespaces/default/deployments/nginx 200 OK in 34 milliseconds
I0808 15:08:44.094454 36976 round_trippers.go:292] Response Headers:
I0808 15:08:44.094465 36976 round_trippers.go:295] Content-Type: application/json
I0808 15:08:44.094475 36976 round_trippers.go:295] Date: Mon, 08 Aug 2016 13:08:44 GMT
I0808 15:08:44.094484 36976 round_trippers.go:295] Content-Length: 975
I0808 15:08:44.094562 36976 request.go:870] Response Body: {"kind":"Deployment","apiVersion":"extensions/v1beta1","metadata":{"name":"nginx","namespace":"default","selfLink":"/apis/extensions/v1beta1/namespaces/default/deployments/nginx","uid":"6b8b5fcd-5d67-11e6-9b59-06fe2a00032a","resourceVersion":"1392489","generation":2,"creationTimestamp":"2016-08-08T12:55:44Z","labels":{"run":"nginx"},"annotations":{"deployment.kubernetes.io/revision":"1"}},"spec":{"replicas":1,"selector":{"matchLabels":{"run":"nginx"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"run":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.10","resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}},"strategy":{"type":"RollingUpdate","rollingUpdate":{"maxUnavailable":1,"maxSurge":1}}},"status":{"observedGeneration":2,"replicas":1,"updatedReplicas":1,"availableReplicas":1}}
I0808 15:08:44.095905 36976 round_trippers.go:267] curl -k -v -XGET -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.2.5 (darwin/amd64) kubernetes/25eb53b" -H "Authorization: Basic Zm9vYmFyOkZkS1BTdXdR" https://185.19.30.238:443/api
I0808 15:08:44.123799 36976 round_trippers.go:286] GET https://185.19.30.238:443/api 200 OK in 27 milliseconds
I0808 15:08:44.123914 36976 round_trippers.go:292] Response Headers:
I0808 15:08:44.123942 36976 round_trippers.go:295] Date: Mon, 08 Aug 2016 13:08:44 GMT
I0808 15:08:44.123962 36976 round_trippers.go:295] Content-Length: 135
I0808 15:08:44.123979 36976 round_trippers.go:295] Content-Type: application/json
I0808 15:08:44.124068 36976 request.go:870] Response Body: {"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]}
I0808 15:08:44.124599 36976 round_trippers.go:267] curl -k -v -XGET -H "Accept: application/json, */*" -H "User-Agent: kubectl/v1.2.5 (darwin/amd64) kubernetes/25eb53b" -H "Authorization: Basic Zm9vYmFyOkZkS1BTdXdR" https://185.19.30.238:443/apis
I0808 15:08:44.155763 36976 round_trippers.go:286] GET https://185.19.30.238:443/apis 200 OK in 31 milliseconds
I0808 15:08:44.155792 36976 round_trippers.go:292] Response Headers:
I0808 15:08:44.155802 36976 round_trippers.go:295] Content-Type: application/json
I0808 15:08:44.155809 36976 round_trippers.go:295] Date: Mon, 08 Aug 2016 13:08:44 GMT
I0808 15:08:44.155816 36976 round_trippers.go:295] Content-Length: 1649
I0808 15:08:44.155865 36976 request.go:870] Response Body: {"kind":"APIGroupList","groups":[{"name":"apps","versions":[{"groupVersion":"apps/v1alpha1","version":"v1alpha1"}],"preferredVersion":{"groupVersion":"apps/v1alpha1","version":"v1alpha1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"autoscaling","versions":[{"groupVersion":"autoscaling/v1","version":"v1"}],"preferredVersion":{"groupVersion":"autoscaling/v1","version":"v1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"batch","versions":[{"groupVersion":"batch/v1","version":"v1"},{"groupVersion":"batch/v2alpha1","version":"v2alpha1"}],"preferredVersion":{"groupVersion":"batch/v1","version":"v1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"extensions","versions":[{"groupVersion":"extensions/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"extensions/v1beta1","version":"v1beta1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"policy","versions":[{"groupVersion":"policy/v1alpha1","version":"v1alpha1"}],"preferredVersion":{"groupVersion":"policy/v1alpha1","version":"v1alpha1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]},{"name":"rbac.authorization.k8s.io","versions":[{"groupVersion":"rbac.authorization.k8s.io/v1alpha1","version":"v1alpha1"}],"preferredVersion":{"groupVersion":"rbac.authorization.k8s.io/v1alpha1","version":"v1alpha1"},"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"185.19.30.238:443"}]}]}
I0808 15:08:44.159995 36976 editor.go:127] Opening file with editor [vi /var/folders/78/47rnllms4dz54_nqwq44q1w80000gn/T/kubectl-edit-fplln.yaml]
I0808 15:08:52.131093 36976 edit.go:221] User edited:
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2016-08-08T12:55:44Z
generation: 2
labels:
run: nginx
name: nginx
namespace: default
resourceVersion: "1392489"
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/nginx
uid: 6b8b5fcd-5d67-11e6-9b59-06fe2a00032a
spec:
replicas: 1
selector:
matchLabels:
run: nginx
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: nginx
spec:
containers:
- image: nginx:1.11
imagePullPolicy: IfNotPresent
name: nginx
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
observedGeneration: 2
replicas: 1
updatedReplicas: 1
I0808 15:08:52.134979 36976 request.go:541] Request Body: {"spec":{"template":{"spec":{"containers":[{"image":"nginx:1.11","name":"nginx"}]}}}}
I0808 15:08:52.135044 36976 round_trippers.go:267] curl -k -v -XPATCH -H "Accept: application/json, */*" -H "Content-Type: application/strategic-merge-patch+json" -H "User-Agent: kubectl/v1.2.5 (darwin/amd64) kubernetes/25eb53b" -H "Authorization: Basic Zm9vYmFyOkZkS1BTdXdR" https://185.19.30.238:443/apis/extensions/v1beta1/namespaces/default/deployments/nginx
I0808 15:08:52.175304 36976 round_trippers.go:286] PATCH https://185.19.30.238:443/apis/extensions/v1beta1/namespaces/default/deployments/nginx 200 OK in 40 milliseconds
I0808 15:08:52.175448 36976 round_trippers.go:292] Response Headers:
I0808 15:08:52.175469 36976 round_trippers.go:295] Content-Length: 975
I0808 15:08:52.175487 36976 round_trippers.go:295] Content-Type: application/json
I0808 15:08:52.175503 36976 round_trippers.go:295] Date: Mon, 08 Aug 2016 13:08:52 GMT
I0808 15:08:52.175637 36976 request.go:870] Response Body: {"kind":"Deployment","apiVersion":"extensions/v1beta1","metadata":{"name":"nginx","namespace":"default","selfLink":"/apis/extensions/v1beta1/namespaces/default/deployments/nginx","uid":"6b8b5fcd-5d67-11e6-9b59-06fe2a00032a","resourceVersion":"1393158","generation":3,"creationTimestamp":"2016-08-08T12:55:44Z","labels":{"run":"nginx"},"annotations":{"deployment.kubernetes.io/revision":"1"}},"spec":{"replicas":1,"selector":{"matchLabels":{"run":"nginx"}},"template":{"metadata":{"creationTimestamp":null,"labels":{"run":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.11","resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","securityContext":{}}},"strategy":{"type":"RollingUpdate","rollingUpdate":{"maxUnavailable":1,"maxSurge":1}}},"status":{"observedGeneration":2,"replicas":1,"updatedReplicas":1,"availableReplicas":1}}
deployment "nginx" edited
from cabin.
From @kemcake on August 10, 2016 9:28
ok done ✅ now there is a "more" button in the upper right in the deployment view. Allowing you to "change image"
from cabin.
seems to work +1
from cabin.
Related Issues (20)
- Please Add to German iTunes Store HOT 1
- No longer available in Australian iTunes Store
- not available on iOS app store
- i can't find cabin in US app store. who can find it HOT 1
- GKE cluster appears Down HOT 9
- need better readme for n00b
- [Build] react-native run-ios doesn't work HOT 1
- Make it easier to add certificates
- [Build] Remove React Native Fork HOT 1
- [bug] Don't Work with IPv6 API
- Sync cluster credentials across iOS devices with iCloud (enhancement)
- Changing maximum number or replicas doesn't work properly on iOS
- Faris
- Can't find <React/RCTBridgeModule.h>
- Dis not find cabin on play store HOT 2
- .p12 defect
- Play store link for Cabin is not working. HOT 8
- Please add to the New Zealand IOS app store
- mnwalker
- Please add to UK store HOT 6
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 cabin.