Update to lastest version
This commit is contained in:
parent
4d58ef6787
commit
3918431f62
15 changed files with 267 additions and 225 deletions
|
|
@ -6,4 +6,4 @@ ingress_domain: "local.dataminem.net"
|
||||||
# - 192.168.140.0/24
|
# - 192.168.140.0/24
|
||||||
basic_auth: false
|
basic_auth: false
|
||||||
|
|
||||||
scope_version: 1.9.1
|
scope_version: 1.11.6
|
||||||
|
|
|
||||||
|
|
@ -28,18 +28,21 @@
|
||||||
- basic_auth == true
|
- basic_auth == true
|
||||||
tags: weave
|
tags: weave
|
||||||
|
|
||||||
|
# file found https://github.com/weaveworks/scope/tree/master/examples/k8s/
|
||||||
- name: Weave Scope files
|
- name: Weave Scope files
|
||||||
k8s:
|
k8s:
|
||||||
state: present
|
state: present
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
||||||
with_items:
|
with_items:
|
||||||
- scope-clusterrolebinding.yaml.j2
|
- psp.yaml.j2
|
||||||
- scope-clusterrole.yaml.j2
|
- cluster-role-binding.yaml.j2
|
||||||
- scope-sa.yaml.j2
|
- cluster-role.yaml.j2
|
||||||
- scope-svc.yaml.j2
|
- sa.yaml.j2
|
||||||
- scope-ds.yaml.j2
|
- svc.yaml.j2
|
||||||
- scope.yaml.j2
|
- ds.yaml.j2
|
||||||
|
- probe-deploy.yaml.j2
|
||||||
|
- deploy.yaml.j2
|
||||||
- weave_ingress.yaml.j2
|
- weave_ingress.yaml.j2
|
||||||
tags: weave
|
tags: weave
|
||||||
|
|
||||||
|
|
|
||||||
16
templates/cluster-role-binding.yaml.j2
Normal file
16
templates/cluster-role-binding.yaml.j2
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: weave-scope
|
||||||
|
labels:
|
||||||
|
name: weave-scope
|
||||||
|
namespace: weave
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: weave-scope
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: weave-scope
|
||||||
|
namespace: weave
|
||||||
88
templates/cluster-role.yaml.j2
Normal file
88
templates/cluster-role.yaml.j2
Normal file
|
|
@ -0,0 +1,88 @@
|
||||||
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
# with little modificatios to reduce permissions
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
name: weave-scope
|
||||||
|
name: weave-scope
|
||||||
|
namespace: weave
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
- pods/log
|
||||||
|
- replicationcontrollers
|
||||||
|
- services
|
||||||
|
- nodes
|
||||||
|
- persistentvolumes
|
||||||
|
- persistentvolumeclaims
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
verbs:
|
||||||
|
- delete
|
||||||
|
- apiGroups:
|
||||||
|
- apps
|
||||||
|
resources:
|
||||||
|
- deployments
|
||||||
|
- statefulsets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- batch
|
||||||
|
resources:
|
||||||
|
- cronjobs
|
||||||
|
- jobs
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
resources:
|
||||||
|
- daemonsets
|
||||||
|
- deployments
|
||||||
|
- deployments/scale
|
||||||
|
- replicasets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
resources:
|
||||||
|
- deployments/scale
|
||||||
|
verbs:
|
||||||
|
- update
|
||||||
|
- apiGroups:
|
||||||
|
- storage.k8s.io
|
||||||
|
resources:
|
||||||
|
- storageclasses
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- extensions
|
||||||
|
resourceNames:
|
||||||
|
- weave-scope
|
||||||
|
resources:
|
||||||
|
- podsecuritypolicies
|
||||||
|
verbs:
|
||||||
|
- use
|
||||||
|
- apiGroups:
|
||||||
|
- volumesnapshot.external-storage.k8s.io
|
||||||
|
resources:
|
||||||
|
- volumesnapshots
|
||||||
|
- volumesnapshotdatas
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
39
templates/deploy.yaml.j2
Normal file
39
templates/deploy.yaml.j2
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: weave-scope-app
|
||||||
|
labels:
|
||||||
|
name: weave-scope-app
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: app
|
||||||
|
namespace: weave
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: weave-scope
|
||||||
|
revisionHistoryLimit: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
name: weave-scope-app
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: app
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: app
|
||||||
|
args:
|
||||||
|
- '--no-probe'
|
||||||
|
env: []
|
||||||
|
image: weaveworks/scope:{{ scope_version }}
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 4040
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 200Mi
|
||||||
|
|
@ -1,16 +1,8 @@
|
||||||
apiVersion: extensions/v1beta1
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: weave-scope-agent
|
name: weave-scope-agent
|
||||||
annotations:
|
|
||||||
cloud.weave.works/launcher-info: |-
|
|
||||||
{
|
|
||||||
"original-request": {
|
|
||||||
"url": "/k8s/v1.10/scope.yaml?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxMSIsIEdpdFZlcnNpb246InYxLjExLjIiLCBHaXRDb21taXQ6ImJiOWZmYjE2NTRkNGE3MjliYjRjZWMxOGZmMDg4ZWFjYzE1M2MyMzkiLCBHaXRUcmVlU3RhdGU6ImNsZWFuIiwgQnVpbGREYXRlOiIyMDE4LTA4LTA3VDIzOjE3OjI4WiIsIEdvVmVyc2lvbjoiZ28xLjEwLjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQpTZXJ2ZXIgVmVyc2lvbjogdmVyc2lvbi5JbmZve01ham9yOiIxIiwgTWlub3I6IjExIiwgR2l0VmVyc2lvbjoidjEuMTEuMSIsIEdpdENvbW1pdDoiYjFiMjk5NzgyNzBkYzIyZmVjYzU5MmFjNTVkOTAzMzUwNDU0MzEwYSIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMTgtMDctMTdUMTg6NDM6MjZaIiwgR29WZXJzaW9uOiJnbzEuMTAuMyIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9Cg==",
|
|
||||||
"date": "Tue Sep 18 2018 08:36:39 GMT+0000 (UTC)"
|
|
||||||
},
|
|
||||||
"email-address": "support@weave.works"
|
|
||||||
}
|
|
||||||
labels:
|
labels:
|
||||||
name: weave-scope-agent
|
name: weave-scope-agent
|
||||||
app: weave-scope
|
app: weave-scope
|
||||||
|
|
@ -19,6 +11,9 @@ metadata:
|
||||||
namespace: weave
|
namespace: weave
|
||||||
spec:
|
spec:
|
||||||
minReadySeconds: 5
|
minReadySeconds: 5
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: weave-scope
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -32,45 +27,41 @@ spec:
|
||||||
args:
|
args:
|
||||||
- '--mode=probe'
|
- '--mode=probe'
|
||||||
- '--probe-only'
|
- '--probe-only'
|
||||||
- '--probe.kubernetes=true'
|
- '--probe.kubernetes.role=host'
|
||||||
- '--probe.docker.bridge=docker0'
|
- '--probe.docker.bridge=docker0'
|
||||||
- '--probe.docker=true'
|
- '--probe.docker=true'
|
||||||
- 'weave-scope-app.weave.svc.cluster.local:80'
|
- 'weave-scope-app.weave.svc.cluster.local.:80'
|
||||||
command:
|
image: weaveworks/scope:{{ scope_version }}
|
||||||
- /home/weave/scope
|
|
||||||
env:
|
|
||||||
- name: KUBERNETES_NODENAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
apiVersion: v1
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
image: 'docker.io/weaveworks/scope:{{ scope_version }}'
|
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run/docker.sock
|
||||||
- name: scope-plugins
|
- name: scope-plugins
|
||||||
mountPath: /var/run/scope/plugins
|
mountPath: /var/run/scope/plugins
|
||||||
- name: sys-kernel-debug
|
- name: sys-kernel-debug
|
||||||
mountPath: /sys/kernel/debug
|
mountPath: /sys/kernel/debug
|
||||||
- name: docker-socket
|
|
||||||
mountPath: /var/run/docker.sock
|
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
hostPID: true
|
hostPID: true
|
||||||
serviceAccountName: weave-scope
|
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
operator: Exists
|
operator: Exists
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
hostPath:
|
||||||
|
path: /var/run/docker.sock
|
||||||
- name: scope-plugins
|
- name: scope-plugins
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/run/scope/plugins
|
path: /var/run/scope/plugins
|
||||||
- name: sys-kernel-debug
|
- name: sys-kernel-debug
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /sys/kernel/debug
|
path: /sys/kernel/debug
|
||||||
- name: docker-socket
|
|
||||||
hostPath:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
type: RollingUpdate
|
rollingUpdate:
|
||||||
|
maxUnavailable: 1
|
||||||
44
templates/probe-deploy.yaml.j2
Normal file
44
templates/probe-deploy.yaml.j2
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: weave-scope-cluster-agent
|
||||||
|
labels:
|
||||||
|
name: weave-scope-cluster-agent
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: cluster-agent
|
||||||
|
namespace: weave
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
name: weave-scope-cluster-agent
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: cluster-agent
|
||||||
|
revisionHistoryLimit: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
name: weave-scope-cluster-agent
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: cluster-agent
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: scope-cluster-agent
|
||||||
|
args:
|
||||||
|
- '--mode=probe'
|
||||||
|
- '--probe-only'
|
||||||
|
- '--probe.kubernetes.role=cluster'
|
||||||
|
- 'weave-scope-app.weave.svc.cluster.local.:80'
|
||||||
|
command:
|
||||||
|
- /home/weave/scope
|
||||||
|
image: 'docker.io/weaveworks/scope:{{ scope_version }}'
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
|
serviceAccountName: weave-scope
|
||||||
21
templates/psp.yaml.j2
Normal file
21
templates/psp.yaml.j2
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: PodSecurityPolicy
|
||||||
|
metadata:
|
||||||
|
name: weave-scope
|
||||||
|
spec:
|
||||||
|
privileged: true
|
||||||
|
hostPID: true
|
||||||
|
hostNetwork: true
|
||||||
|
allowedCapabilities:
|
||||||
|
- 'NET_ADMIN'
|
||||||
|
fsGroup:
|
||||||
|
rule: RunAsAny
|
||||||
|
runAsUser:
|
||||||
|
rule: RunAsAny
|
||||||
|
seLinux:
|
||||||
|
rule: RunAsAny
|
||||||
|
supplementalGroups:
|
||||||
|
rule: RunAsAny
|
||||||
|
volumes:
|
||||||
|
- secret
|
||||||
|
- hostPath
|
||||||
8
templates/sa.yaml.j2
Normal file
8
templates/sa.yaml.j2
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: weave-scope
|
||||||
|
labels:
|
||||||
|
name: weave-scope
|
||||||
|
namespace: weave
|
||||||
|
|
@ -1,79 +0,0 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: weave-scope
|
|
||||||
annotations:
|
|
||||||
cloud.weave.works/launcher-info: |-
|
|
||||||
{
|
|
||||||
"original-request": {
|
|
||||||
"url": "/k8s/v1.10/scope.yaml?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxMSIsIEdpdFZlcnNpb246InYxLjExLjIiLCBHaXRDb21taXQ6ImJiOWZmYjE2NTRkNGE3MjliYjRjZWMxOGZmMDg4ZWFjYzE1M2MyMzkiLCBHaXRUcmVlU3RhdGU6ImNsZWFuIiwgQnVpbGREYXRlOiIyMDE4LTA4LTA3VDIzOjE3OjI4WiIsIEdvVmVyc2lvbjoiZ28xLjEwLjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQpTZXJ2ZXIgVmVyc2lvbjogdmVyc2lvbi5JbmZve01ham9yOiIxIiwgTWlub3I6IjExIiwgR2l0VmVyc2lvbjoidjEuMTEuMSIsIEdpdENvbW1pdDoiYjFiMjk5NzgyNzBkYzIyZmVjYzU5MmFjNTVkOTAzMzUwNDU0MzEwYSIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMTgtMDctMTdUMTg6NDM6MjZaIiwgR29WZXJzaW9uOiJnbzEuMTAuMyIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9Cg==",
|
|
||||||
"date": "Tue Sep 18 2018 08:36:39 GMT+0000 (UTC)"
|
|
||||||
},
|
|
||||||
"email-address": "support@weave.works"
|
|
||||||
}
|
|
||||||
labels:
|
|
||||||
name: weave-scope
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ''
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- delete
|
|
||||||
- apiGroups:
|
|
||||||
- ''
|
|
||||||
resources:
|
|
||||||
- pods/log
|
|
||||||
- services
|
|
||||||
- nodes
|
|
||||||
- namespaces
|
|
||||||
- persistentvolumes
|
|
||||||
- persistentvolumeclaims
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- apps
|
|
||||||
resources:
|
|
||||||
- statefulsets
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- batch
|
|
||||||
resources:
|
|
||||||
- cronjobs
|
|
||||||
- jobs
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- extensions
|
|
||||||
resources:
|
|
||||||
- deployments
|
|
||||||
- daemonsets
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
- apiGroups:
|
|
||||||
- extensions
|
|
||||||
resources:
|
|
||||||
- deployments/scale
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- update
|
|
||||||
- apiGroups:
|
|
||||||
- storage.k8s.io
|
|
||||||
resources:
|
|
||||||
- storageclasses
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: weave-scope
|
|
||||||
annotations:
|
|
||||||
cloud.weave.works/launcher-info: |-
|
|
||||||
{
|
|
||||||
"original-request": {
|
|
||||||
"url": "/k8s/v1.10/scope.yaml?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxMSIsIEdpdFZlcnNpb246InYxLjExLjIiLCBHaXRDb21taXQ6ImJiOWZmYjE2NTRkNGE3MjliYjRjZWMxOGZmMDg4ZWFjYzE1M2MyMzkiLCBHaXRUcmVlU3RhdGU6ImNsZWFuIiwgQnVpbGREYXRlOiIyMDE4LTA4LTA3VDIzOjE3OjI4WiIsIEdvVmVyc2lvbjoiZ28xLjEwLjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQpTZXJ2ZXIgVmVyc2lvbjogdmVyc2lvbi5JbmZve01ham9yOiIxIiwgTWlub3I6IjExIiwgR2l0VmVyc2lvbjoidjEuMTEuMSIsIEdpdENvbW1pdDoiYjFiMjk5NzgyNzBkYzIyZmVjYzU5MmFjNTVkOTAzMzUwNDU0MzEwYSIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMTgtMDctMTdUMTg6NDM6MjZaIiwgR29WZXJzaW9uOiJnbzEuMTAuMyIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9Cg==",
|
|
||||||
"date": "Tue Sep 18 2018 08:36:39 GMT+0000 (UTC)"
|
|
||||||
},
|
|
||||||
"email-address": "support@weave.works"
|
|
||||||
}
|
|
||||||
labels:
|
|
||||||
name: weave-scope
|
|
||||||
roleRef:
|
|
||||||
kind: ClusterRole
|
|
||||||
name: weave-scope
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: weave-scope
|
|
||||||
namespace: weave
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: weave-scope
|
|
||||||
annotations:
|
|
||||||
cloud.weave.works/launcher-info: |-
|
|
||||||
{
|
|
||||||
"original-request": {
|
|
||||||
"url": "/k8s/v1.10/scope.yaml?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxMSIsIEdpdFZlcnNpb246InYxLjExLjIiLCBHaXRDb21taXQ6ImJiOWZmYjE2NTRkNGE3MjliYjRjZWMxOGZmMDg4ZWFjYzE1M2MyMzkiLCBHaXRUcmVlU3RhdGU6ImNsZWFuIiwgQnVpbGREYXRlOiIyMDE4LTA4LTA3VDIzOjE3OjI4WiIsIEdvVmVyc2lvbjoiZ28xLjEwLjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQpTZXJ2ZXIgVmVyc2lvbjogdmVyc2lvbi5JbmZve01ham9yOiIxIiwgTWlub3I6IjExIiwgR2l0VmVyc2lvbjoidjEuMTEuMSIsIEdpdENvbW1pdDoiYjFiMjk5NzgyNzBkYzIyZmVjYzU5MmFjNTVkOTAzMzUwNDU0MzEwYSIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMTgtMDctMTdUMTg6NDM6MjZaIiwgR29WZXJzaW9uOiJnbzEuMTAuMyIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9Cg==",
|
|
||||||
"date": "Tue Sep 18 2018 08:36:39 GMT+0000 (UTC)"
|
|
||||||
},
|
|
||||||
"email-address": "support@weave.works"
|
|
||||||
}
|
|
||||||
labels:
|
|
||||||
name: weave-scope
|
|
||||||
namespace: weave
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: weave-scope-app
|
|
||||||
annotations:
|
|
||||||
cloud.weave.works/launcher-info: |-
|
|
||||||
{
|
|
||||||
"original-request": {
|
|
||||||
"url": "/k8s/v1.10/scope.yaml?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxMSIsIEdpdFZlcnNpb246InYxLjExLjIiLCBHaXRDb21taXQ6ImJiOWZmYjE2NTRkNGE3MjliYjRjZWMxOGZmMDg4ZWFjYzE1M2MyMzkiLCBHaXRUcmVlU3RhdGU6ImNsZWFuIiwgQnVpbGREYXRlOiIyMDE4LTA4LTA3VDIzOjE3OjI4WiIsIEdvVmVyc2lvbjoiZ28xLjEwLjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQpTZXJ2ZXIgVmVyc2lvbjogdmVyc2lvbi5JbmZve01ham9yOiIxIiwgTWlub3I6IjExIiwgR2l0VmVyc2lvbjoidjEuMTEuMSIsIEdpdENvbW1pdDoiYjFiMjk5NzgyNzBkYzIyZmVjYzU5MmFjNTVkOTAzMzUwNDU0MzEwYSIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMTgtMDctMTdUMTg6NDM6MjZaIiwgR29WZXJzaW9uOiJnbzEuMTAuMyIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9Cg==",
|
|
||||||
"date": "Tue Sep 18 2018 08:36:39 GMT+0000 (UTC)"
|
|
||||||
},
|
|
||||||
"email-address": "support@weave.works"
|
|
||||||
}
|
|
||||||
labels:
|
|
||||||
name: weave-scope-app
|
|
||||||
app: weave-scope
|
|
||||||
weave-cloud-component: scope
|
|
||||||
weave-scope-component: app
|
|
||||||
namespace: weave
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: app
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 4040
|
|
||||||
selector:
|
|
||||||
name: weave-scope-app
|
|
||||||
app: weave-scope
|
|
||||||
weave-cloud-component: scope
|
|
||||||
weave-scope-component: app
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
apiVersion: apps/v1beta1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: weave-scope-app
|
|
||||||
annotations:
|
|
||||||
cloud.weave.works/launcher-info: |-
|
|
||||||
{
|
|
||||||
"original-request": {
|
|
||||||
"url": "/k8s/v1.10/scope.yaml?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxMSIsIEdpdFZlcnNpb246InYxLjExLjIiLCBHaXRDb21taXQ6ImJiOWZmYjE2NTRkNGE3MjliYjRjZWMxOGZmMDg4ZWFjYzE1M2MyMzkiLCBHaXRUcmVlU3RhdGU6ImNsZWFuIiwgQnVpbGREYXRlOiIyMDE4LTA4LTA3VDIzOjE3OjI4WiIsIEdvVmVyc2lvbjoiZ28xLjEwLjMiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQpTZXJ2ZXIgVmVyc2lvbjogdmVyc2lvbi5JbmZve01ham9yOiIxIiwgTWlub3I6IjExIiwgR2l0VmVyc2lvbjoidjEuMTEuMSIsIEdpdENvbW1pdDoiYjFiMjk5NzgyNzBkYzIyZmVjYzU5MmFjNTVkOTAzMzUwNDU0MzEwYSIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMTgtMDctMTdUMTg6NDM6MjZaIiwgR29WZXJzaW9uOiJnbzEuMTAuMyIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9Cg==",
|
|
||||||
"date": "Tue Sep 18 2018 08:36:39 GMT+0000 (UTC)"
|
|
||||||
},
|
|
||||||
"email-address": "support@weave.works"
|
|
||||||
}
|
|
||||||
labels:
|
|
||||||
name: weave-scope-app
|
|
||||||
app: weave-scope
|
|
||||||
weave-cloud-component: scope
|
|
||||||
weave-scope-component: app
|
|
||||||
namespace: weave
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
revisionHistoryLimit: 2
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
name: weave-scope-app
|
|
||||||
app: weave-scope
|
|
||||||
weave-cloud-component: scope
|
|
||||||
weave-scope-component: app
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: app
|
|
||||||
args:
|
|
||||||
- '--mode=app'
|
|
||||||
command:
|
|
||||||
- /home/weave/scope
|
|
||||||
env: []
|
|
||||||
image: 'docker.io/weaveworks/scope:{{ scope_version }}'
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 4040
|
|
||||||
protocol: TCP
|
|
||||||
22
templates/svc.yaml.j2
Normal file
22
templates/svc.yaml.j2
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# borrowed from https://cloud.weave.works/k8s/scope.yaml?k8s-version=1.9.3
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: weave-scope-app
|
||||||
|
labels:
|
||||||
|
name: weave-scope-app
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: app
|
||||||
|
namespace: weave
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: app
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 4040
|
||||||
|
selector:
|
||||||
|
name: weave-scope-app
|
||||||
|
app: weave-scope
|
||||||
|
weave-cloud-component: scope
|
||||||
|
weave-scope-component: app
|
||||||
Loading…
Add table
Add a link
Reference in a new issue