Skip to content

Commit

Permalink
update ds.yaml and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mcluseau committed Oct 31, 2020
1 parent 6fbf824 commit 37fdb2c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from mcluseau/golang-builder:1.14.0 as build
from alpine:3.11
from mcluseau/golang-builder:1.15.3 as build
from alpine:3.12
entrypoint ["/bin/kube-proxy2"]
run apk add --update iptables iproute2
run apk add --update iptables iproute2 nftables
copy --from=build /go/bin/ /bin/
33 changes: 33 additions & 0 deletions doc/ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,40 @@ spec:
labels:
app: kube-proxy2
spec:
nodeSelector:
kube-proxy: v2
serviceAccountName: kube-proxy
hostNetwork: true
containers:
- image: mcluseau/kube-proxy2
name: kube-proxy2
volumeMounts:
- name: empty
mountPath: /k8s
args:
- --listen
- unix:///k8s/proxy.sock
- image: mcluseau/kube-proxy2
name: kube-proxy-nftables
securityContext:
capabilities:
add:
- NET_ADMIN
volumeMounts:
- name: empty
mountPath: /k8s
- name: modules
mountPath: /lib/modules
readOnly: true
command:
- kube-proxy-nftables
- --target
- unix:///k8s/proxy.sock
#- --debug
#- --dry-run
volumes:
- name: empty
emptyDir: {}
- name: modules
hostPath:
path: /lib/modules

0 comments on commit 37fdb2c

Please sign in to comment.