2017-11-09 03:30:45 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: ip-masq-agent
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: ip-masq-agent
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
---
|
2017-05-18 17:06:04 +00:00
|
|
|
# https://github.com/kubernetes-incubator/ip-masq-agent/blob/v2.0.0/README.md
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: ip-masq-agent
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: ip-masq-agent
|
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
|
|
spec:
|
2017-11-09 03:30:45 +00:00
|
|
|
serviceAccountName: ip-masq-agent
|
2017-05-18 17:06:04 +00:00
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
|
|
|
- name: ip-masq-agent
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
image: k8s.gcr.io/ip-masq-agent-amd64:v2.0.2
|
2017-06-01 00:46:34 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
2017-06-22 02:05:03 +00:00
|
|
|
memory: 16Mi
|
2017-05-18 17:06:04 +00:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/config
|
2017-06-20 15:18:33 +00:00
|
|
|
nodeSelector:
|
|
|
|
beta.kubernetes.io/masq-agent-ds-ready: "true"
|
2017-05-18 17:06:04 +00:00
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
# Note this ConfigMap must be created in the same namespace as the daemon pods - this spec uses kube-system
|
|
|
|
name: ip-masq-agent
|
|
|
|
optional: true
|
|
|
|
items:
|
|
|
|
# The daemon looks for its config in a YAML file at /etc/config/ip-masq-agent
|
|
|
|
- key: config
|
|
|
|
path: ip-masq-agent
|
2017-05-31 03:37:06 +00:00
|
|
|
tolerations:
|
|
|
|
- key: "CriticalAddonsOnly"
|
|
|
|
operator: "Exists"
|