Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Update Weave-Kube daemonset YAML files using Launch Generator.
Browse files Browse the repository at this point in the history
Note that given the YAML's structure is different from previous version, indentation of `COVERAGE_ARGS` had to change (+4 whitespaces to each line).
Commands used:
```
$ curl https://cloud.weave.works/k8s/v1.5/net?v=latest > prog/weave-kube/weave-daemonset.yaml
$ curl https://cloud.weave.works/k8s/v1.6/net?v=latest > prog/weave-kube/weave-daemonset-k8s-1.6.yaml
```
  • Loading branch information
marccarre committed May 2, 2017
1 parent 215106a commit 93f4450
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 182 deletions.
265 changes: 156 additions & 109 deletions prog/weave-kube/weave-daemonset-k8s-1.6.yaml
Original file line number Diff line number Diff line change
@@ -1,120 +1,167 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: weave-net
rules:
- apiGroups:
- ""
resources:
- pods
- namespaces
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- networkpolicies
verbs:
- get
- list
- watch
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: weave-net
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: weave-net
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: weave-net
subjects:
- kind: ServiceAccount
name: weave-net
namespace: kube-system
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: weave-net
namespace: kube-system
spec:
template:
metadata:
kind: List
items:
- metadata:
labels:
name: weave-net
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-c1f3803",
"original-request": {
"url": "/k8s/v1.6/net?v=latest",
"date": "Thu Apr 20 2017 09:43:20 GMT+0000 (UTC)"
},
"email-address": "[email protected]"
}
apiVersion: v1
kind: ServiceAccount
- metadata:
labels:
name: weave-net
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-c1f3803",
"original-request": {
"url": "/k8s/v1.6/net?v=latest",
"date": "Thu Apr 20 2017 09:43:20 GMT+0000 (UTC)"
},
"email-address": "[email protected]"
}
spec:
hostNetwork: true
hostPID: true
containers:
- name: weave
image: weaveworks/weave-kube:latest
imagePullPolicy: Always
command:
- /home/weave/launch.sh
livenessProbe:
initialDelaySeconds: 30
httpGet:
host: 127.0.0.1
path: /status
port: 6784
securityContext:
privileged: true
volumeMounts:
template:
metadata:
labels:
name: weave-net
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: weave
image: 'weaveworks/weave-kube:latest'
imagePullPolicy: Always
command:
- /home/weave/launch.sh
env: []
livenessProbe:
initialDelaySeconds: 30
httpGet:
host: 127.0.0.1
path: /status
port: 6784
volumeMounts:
- name: weavedb
mountPath: /weavedb
- name: cni-bin
mountPath: /host/opt
- name: cni-bin2
mountPath: /host/home
- name: cni-conf
mountPath: /host/etc
- name: dbus
mountPath: /host/var/lib/dbus
- name: lib-modules
mountPath: /lib/modules
resources:
requests:
cpu: 10m
securityContext:
privileged: true
- name: weave-npc
image: 'weaveworks/weave-npc:latest'
imagePullPolicy: Always
resources:
requests:
cpu: 10m
securityContext:
privileged: true
volumes:
- name: weavedb
mountPath: /weavedb
emptyDir: {}
- name: cni-bin
mountPath: /host/opt
hostPath:
path: /opt
- name: cni-bin2
mountPath: /host/home
hostPath:
path: /home
- name: cni-conf
mountPath: /host/etc
hostPath:
path: /etc
- name: dbus
mountPath: /host/var/lib/dbus
hostPath:
path: /var/lib/dbus
- name: lib-modules
mountPath: /lib/modules
resources:
requests:
cpu: 10m
- name: weave-npc
image: weaveworks/weave-npc:latest
imagePullPolicy: Always
resources:
requests:
cpu: 10m
hostPath:
path: /lib/modules
hostPID: true
hostNetwork: true
serviceAccountName: weave-net
restartPolicy: Always
securityContext:
privileged: true
restartPolicy: Always
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
serviceAccountName: weave-net
securityContext:
seLinuxOptions:
type: spc_t
volumes:
- name: weavedb
emptyDir: {}
- name: cni-bin
hostPath:
path: /opt
- name: cni-bin2
hostPath:
path: /home
- name: cni-conf
hostPath:
path: /etc
- name: dbus
hostPath:
path: /var/lib/dbus
- name: lib-modules
hostPath:
path: /lib/modules
seLinuxOptions:
type: spc_t
apiVersion: extensions/v1beta1
kind: DaemonSet
- metadata:
labels:
name: weave-net
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-c1f3803",
"original-request": {
"url": "/k8s/v1.6/net?v=latest",
"date": "Thu Apr 20 2017 09:43:20 GMT+0000 (UTC)"
},
"email-address": "[email protected]"
}
rules:
- apiGroups:
- ''
resources:
- pods
- namespaces
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- networkpolicies
verbs:
- get
- list
- watch
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
- metadata:
labels:
name: weave-net
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-c1f3803",
"original-request": {
"url": "/k8s/v1.6/net?v=latest",
"date": "Thu Apr 20 2017 09:43:20 GMT+0000 (UTC)"
},
"email-address": "[email protected]"
}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: weave-net
subjects:
- kind: ServiceAccount
name: weave-net
namespace: kube-system
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
Loading

0 comments on commit 93f4450

Please sign in to comment.