Commit 0b501dd2 authored by runseb's avatar runseb

move old DM install to helm namespace and helm app label

parent a2a5564c
...@@ -73,7 +73,7 @@ func (i *Installer) expand() ([]byte, error) { ...@@ -73,7 +73,7 @@ func (i *Installer) expand() ([]byte, error) {
func IsInstalled(runner kubectl.Runner) bool { func IsInstalled(runner kubectl.Runner) bool {
// Basically, we test "all-or-nothing" here: if this returns without error // Basically, we test "all-or-nothing" here: if this returns without error
// we know that we have both the namespace and the manager API server. // we know that we have both the namespace and the manager API server.
out, err := runner.GetByKind("rc", "manager-rc", "dm") out, err := runner.GetByKind("rc", "manager-rc", "helm")
if err != nil { if err != nil {
format.Err("Installation not found: %s %s", out, err) format.Err("Installation not found: %s %s", out, err)
return false return false
...@@ -101,44 +101,44 @@ apiVersion: v1 ...@@ -101,44 +101,44 @@ apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
labels: labels:
app: dm app: helm
name: dm-namespace name: helm-namespace
name: dm name: helm
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
app: dm app: helm
name: expandybird-service name: expandybird-service
name: expandybird-service name: expandybird-service
namespace: dm namespace: helm
spec: spec:
ports: ports:
- name: expandybird - name: expandybird
port: 8081 port: 8081
targetPort: 8080 targetPort: 8080
selector: selector:
app: dm app: helm
name: expandybird name: expandybird
--- ---
apiVersion: v1 apiVersion: v1
kind: ReplicationController kind: ReplicationController
metadata: metadata:
labels: labels:
app: dm app: helm
name: expandybird-rc name: expandybird-rc
name: expandybird-rc name: expandybird-rc
namespace: dm namespace: helm
spec: spec:
replicas: 2 replicas: 2
selector: selector:
app: dm app: helm
name: expandybird name: expandybird
template: template:
metadata: metadata:
labels: labels:
app: dm app: helm
name: expandybird name: expandybird
spec: spec:
containers: containers:
...@@ -153,36 +153,36 @@ apiVersion: v1 ...@@ -153,36 +153,36 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
app: dm app: helm
name: resourcifier-service name: resourcifier-service
name: resourcifier-service name: resourcifier-service
namespace: dm namespace: helm
spec: spec:
ports: ports:
- name: resourcifier - name: resourcifier
port: 8082 port: 8082
targetPort: 8080 targetPort: 8080
selector: selector:
app: dm app: helm
name: resourcifier name: resourcifier
--- ---
apiVersion: v1 apiVersion: v1
kind: ReplicationController kind: ReplicationController
metadata: metadata:
labels: labels:
app: dm app: helm
name: resourcifier-rc name: resourcifier-rc
name: resourcifier-rc name: resourcifier-rc
namespace: dm namespace: helm
spec: spec:
replicas: 2 replicas: 2
selector: selector:
app: dm app: helm
name: resourcifier name: resourcifier
template: template:
metadata: metadata:
labels: labels:
app: dm app: helm
name: resourcifier name: resourcifier
spec: spec:
containers: containers:
...@@ -197,36 +197,36 @@ apiVersion: v1 ...@@ -197,36 +197,36 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
app: dm app: helm
name: manager-service name: manager-service
name: manager-service name: manager-service
namespace: dm namespace: helm
spec: spec:
ports: ports:
- name: manager - name: manager
port: 8080 port: 8080
targetPort: 8080 targetPort: 8080
selector: selector:
app: dm app: helm
name: manager name: manager
--- ---
apiVersion: v1 apiVersion: v1
kind: ReplicationController kind: ReplicationController
metadata: metadata:
labels: labels:
app: dm app: helm
name: manager-rc name: manager-rc
name: manager-rc name: manager-rc
namespace: dm namespace: helm
spec: spec:
replicas: 1 replicas: 1
selector: selector:
app: dm app: helm
name: manager name: manager
template: template:
metadata: metadata:
labels: labels:
app: dm app: helm
name: manager name: manager
spec: spec:
containers: containers:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment