Tweaks to the docs

This commit is contained in:
Tom Wilkie
2016-05-10 14:31:01 +02:00
parent 4e151c4258
commit 2850fdef3e
2 changed files with 3 additions and 84 deletions

View File

@@ -173,26 +173,18 @@ It is recommended that you run Scope natively in your Kubernetes cluster using t
The simplest way to get the latest release of Scope deployed onto a Kubernetes cluster is the following:
```
kubectl create -f 'https://scope.weave.works/k8s-gen/weavescope.json' --validate=false
```
kubectl create -f 'https://scope.weave.works/k8s-gen/weavescope.json' --validate=false
Allowable parameters:
- `v` - Weave Scope version or tag, e.g. `latest` or `0.15.0`, current release is the default
- `v` - Weave Scope version or tag, e.g. `latest` or `0.15.0`, current release is the default
- `service-token` - Weave Scope Cloud Service token
- `k8s-service-type` - Kubernetes service type (for running Scope in Standalone mode), can be either
`LoadBalancer` or `NodePort`, by default this is unspecified (only internal access)
To download the Scope manifest, use the YAML version of the manifest, since it is easier to read, for example:
```
curl --silent --remote-name https://scope.weave.works/k8s-gen/weavescope.yaml
```
kubectl create -f https://git.io/scope-k8s
curl --silent --remote-name https://scope.weave.works/k8s-gen/weavescope.yaml
This runs a recent Scope image from the Docker Hub and will launch a probe onto every node as well as a single app. Once launched, Scope doesnt require any other configuration and it also doesnt depend on Weave Net.

View File

@@ -1,73 +0,0 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ReplicationController
metadata:
name: weavescope-app
namespace: kube-system
labels:
name: weavescope-app
spec:
replicas: 1
template:
metadata:
labels:
provider: weavescope-app
spec:
containers:
- name: weavescope-app
image: weaveworks/scope:0.15
args:
- --no-probe
- --app.weave.addr=
ports:
- containerPort: 4040
hostPort: 4040
- apiVersion: v1
kind: Service
metadata:
name: weavescope-app
namespace: kube-system
spec:
type: LoadBalancer
ports:
- name: app
port: 4040
selector:
name: weavescope-app
- apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: weavescope-probe
namespace: kube-system
spec:
template:
metadata:
name: weavescope-probe
spec:
hostPID: true
hostNetwork: true
containers:
- name: weavescope-probe
image: weaveworks/scope:0.15
args:
- --no-app
- --probe.docker=true
- --probe.kubernetes=true
- --probe.weave.addr=
- --probe.docker.bridge=docker0
- --probe.resolver=$(KUBE_DNS_SERVICE_HOST):$(KUBE_DNS_SERVICE_PORT)
- weave-scope-app.kube-system.svc.cluster.local:4040
securityContext:
privileged: true
resources:
limits:
cpu: 50m
volumeMounts:
- name: docker-sock
mountPath: /var/run/docker.sock
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock