mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #1017 from pwittrock/deploy
Switch from rc to deployment for running tiller
This commit is contained in:
commit
2c3d45d1f9
2 changed files with 4 additions and 10 deletions
|
|
@ -66,19 +66,13 @@ func Install(namespace, image string, verbose bool) error {
|
|||
// InstallYAML is the installation YAML for DM.
|
||||
const InstallYAML = `
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: helm
|
||||
name: tiller
|
||||
name: tiller-rc
|
||||
name: tiller-deploy
|
||||
namespace: {{ .Namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
app: helm
|
||||
name: tiller
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ func (c *Client) ForwardPort(namespace, podName string, remote int) (*Tunnel, er
|
|||
}
|
||||
|
||||
// Build a url to the portforward endpoing
|
||||
// example: http://localhost:8080/api/v1/namespaces/helm/pods/tiller-rc-9itlq/portforward
|
||||
// example: http://localhost:8080/api/v1/namespaces/helm/pods/tiller-deploy-9itlq/portforward
|
||||
u := client.RESTClient.Post().
|
||||
Resource("pods").
|
||||
Namespace(namespace).
|
||||
|
|
|
|||
Loading…
Reference in a new issue