-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample2.yaml
38 lines (38 loc) · 1.02 KB
/
example2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: v1
kind: Pod
metadata:
name: relayed-pod
spec:
initContainers:
- name: qpoint-init
image: us-docker.pkg.dev/qpoint-edge/public/kubernetes-qpoint-init:<SHA>
securityContext:
capabilities:
add:
- NET_ADMIN
containers:
- name: app
image: ubuntu:latest
command:
- /bin/sh
- -c
- |
adduser --uid 1002 --disabled-password --gecos "" testuser
apt-get update
apt-get -y install curl net-tools
while true; do
# Keep container alive indefinitely
sleep 3600
done
- name: proxy
image: us-docker.pkg.dev/qpoint-edge/public/qtap:<SHA>
ports:
- containerPort: 10080
- containerPort: 10443
- containerPort: 18080
- containerPort: 18443
command: ["qpoint"]
args: ["proxy", "--envoy-log-level=error", "--log-level=info", "--dns-lookup-family=V4_ONLY"]
env:
- name: REGISTRATION_TOKEN
value: "<TOKEN>"