Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create skipper ingress daemon set #194

Merged
merged 3 commits into from
Dec 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions cluster/userdata-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,59 @@ write_files:
hostNetwork: true
hostPID: true

- path: /srv/kubernetes/manifests/daemonsets/skipper-ingress.yaml
content: |
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: skipper-ingress
namespace: kube-system
labels:
application: skipper-ingress
version: prerelease-ingress-1
component: ingress
spec:
selector:
matchLabels:
application: skipper-ingress
template:
metadata:
name: skipper-ingress
labels:
application: skipper-ingress
version: prerelease-ingress-1
component: ingress
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
spec:
containers:
- name: skipper-ingress
image: registry.opensource.zalan.do/teapot/skipper:prerelease-ingress-1
ports:
- name: ingress-port
containerPort: 9999
hostPort: 9999
command: ["skipper", "-application-log-level", "DEBUG", "-kubernetes-url", "http://localhost:8001", "-address", ":9999"]
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 25m
memory: 25Mi
- name: kubectl
image: registry.opensource.zalan.do/teapot/hyperkube:v1.5.0-beta.2_custom.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should use the same hyperkube version as everywhere else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make sense to use the same hyperkube image here as we do in all other places.

This is currently: registry.opensource.zalan.do/teapot/hyperkube:v1.4.7_zalando.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

command:
- /hyperkube
args:
- kubectl
- proxy
ports:
- containerPort: 8001
hostNetwork: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hostNetwork means that the kubectl container port 8001 is opened on the host's "localhost"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, thx, not needed atm

hostPID: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we use hostPID?

Copy link
Contributor Author

@aryszka aryszka Dec 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, thx, not needed at all


- path: /srv/kubernetes/manifests/daemonsets/kube2iam.yaml
content: |
apiVersion: extensions/v1beta1
Expand Down