mirror of https://github.com/k3s-io/k3s
![]() Example: a pod like the below should proxy port 53 TCP and UDP to the main DNS service. ``` apiVersion: v1 kind: Pod metadata: name: localhost-dns-proxy spec: containers: - name: proxy-udp image: gcr.io/google_containers/proxy-to-service:v1 args: [ "udp", "53", "kube-dns.default" ] ports: - name: udp protocol: UDP containerPort: 53 hostPort: 53 - name: proxy-tcp image: gcr.io/google_containers/proxy-to-service:v1 args: [ "tcp", "53", "kube-dns.default" ] ports: - name: tcp protocol: TCP containerPort: 53 hostPort: 53 ``` |
||
---|---|---|
.. | ||
ansible | ||
completions/bash | ||
for-demos | ||
for-tests | ||
git-sync | ||
go2docker | ||
init/systemd | ||
logging | ||
mesos | ||
pod-master | ||
podex | ||
prometheus | ||
recipes | ||
release-notes |