This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 672
Add weave-kube DaemonSet that can be used with k8s version v1.6 #2801
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
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: | ||
labels: | ||
name: weave-net | ||
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: | ||
- 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 | ||
- name: weave-npc | ||
image: weaveworks/weave-npc:latest | ||
imagePullPolicy: Always | ||
resources: | ||
requests: | ||
cpu: 10m | ||
securityContext: | ||
privileged: true | ||
restartPolicy: Always | ||
tolerations: | ||
- key: node-role.kubernetes.io/master | ||
effect: NoSchedule | ||
serviceAccountName: weave-net | ||
securityContext: | ||
seLinuxOptions: | ||
type: spc_t | ||
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
Sorry, something went wrong. |
||
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
Sorry, something went wrong.