λ helm version
Client: &version.Version{SemVer:"v2.7.2", GitCommit:"8478fb4fc723885b155c924d1c8c410b7a9444e6", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.0", GitCommit:"14af25f1de6832228539259b821949d20069a222", GitTreeState:"clean"}
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "xinge-swift-swift",
"namespace": "kube-system",
"selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/deployments/xinge-swift-swift",
"uid": "c33a1e58-0664-11e8-8074-00163e0af3dd",
"resourceVersion": "2403043",
"generation": 3,
"creationTimestamp": "2018-01-31T08:57:27Z",
"labels": {
"app": "swift",
"chart": "swift-0.3.0",
"heritage": "Tiller",
"release": "xinge-swift"
},
"annotations": {
"deployment.kubernetes.io/revision": "3"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"app": "swift",
"release": "xinge-swift"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "swift",
"release": "xinge-swift"
}
},
"spec": {
"volumes": [
{
"name": "chart-volume",
"emptyDir": {}
}
],
"containers": [
{
"name": "swift",
"image": "appscode/swift:0.6.0",
"args": [
"run",
"--v=3",
"--connector=incluster"
],
"ports": [
{
"name": "pt",
"containerPort": 9855,
"protocol": "TCP"
},
{
"name": "tls",
"containerPort": 50055,
"protocol": "TCP"
},
{
"name": "ops",
"containerPort": 56790,
"protocol": "TCP"
}
],
"resources": {},
"volumeMounts": [
{
"name": "chart-volume",
"mountPath": "/tmp"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"serviceAccountName": "xinge-swift-swift",
"serviceAccount": "xinge-swift-swift",
"securityContext": {},
"schedulerName": "default-scheduler"
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxUnavailable": "25%",
"maxSurge": "25%"
}
},
"revisionHistoryLimit": 2,
"progressDeadlineSeconds": 600
},
"status": {
"observedGeneration": 3,
"replicas": 1,
"updatedReplicas": 1,
"readyReplicas": 1,
"availableReplicas": 1,
"conditions": [
{
"type": "Available",
"status": "True",
"lastUpdateTime": "2018-01-31T08:57:29Z",
"lastTransitionTime": "2018-01-31T08:57:29Z",
"reason": "MinimumReplicasAvailable",
"message": "Deployment has minimum availability."
},
{
"type": "Progressing",
"status": "True",
"lastUpdateTime": "2018-02-05T09:38:14Z",
"lastTransitionTime": "2018-01-31T08:57:27Z",
"reason": "NewReplicaSetAvailable",
"message": "ReplicaSet \"xinge-swift-swift-55d5b78447\" has successfully progressed."
}
]
}
}
λ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.3-rancher1", GitCommit:"beb8311a9f114ba92558d8d771a81b7fb38422ae", GitTreeState:"clean", BuildDate:"2017-11-14T00:54:19Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
λ curl -X GET \
> http://k8s.fxdayu.com/swift/tiller/v2/releases/test-release/json \
> -H 'Authorization: Basic eGl*******pZnQ=' \
> -H 'Cache-Control: no-cache' \
> -H 'Postman-Token: 0ea146cd-21c0-205b-f6ed-8d412141da80'
{}
λ helm list test-release
NAME REVISION UPDATED STATUS CHART NAMESPACE
test-release 3 Mon Feb 5 18:08:19 2018 DEPLOYED test-chart-0.1.0 default
λ helm history test-release
REVISION UPDATED STATUS CHART DESCRIPTION
1 Mon Feb 5 17:45:20 2018 SUPERSEDED test-chart-0.1.0 Install complete
2 Mon Feb 5 18:08:16 2018 SUPERSEDED test-chart-0.1.0 Upgrade complete
3 Mon Feb 5 18:08:19 2018 DEPLOYED test-chart-0.1.0 Upgrade complete