Skip to content

Commit 9207b83

Browse files
committed
Usen hostPort's in KIND
Signed-off-by: Alvaro Saurin <[email protected]>
1 parent fe4dea7 commit 9207b83

File tree

1 file changed

+3
-105
lines changed

1 file changed

+3
-105
lines changed

deploy/third-party/kind/ambassadorinstallation.yaml

+3-105
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
name: ambassador
66
spec:
77
installOSS: true
8+
helmRepo: https://github.com/datawire/ambassador-chart/archive/master.zip
89
helmValues:
910
deploymentTool: amb-oper-kind
1011
replicaCount: 1
@@ -15,114 +16,11 @@ spec:
1516
ports:
1617
- name: http
1718
port: 80
19+
hostPort: 80
1820
targetPort: 8080
1921
protocol: TCP
2022
- name: https
2123
port: 443
24+
hostPort: 443
2225
targetPort: 8443
2326
protocol: TCP
24-
---
25-
apiVersion: v1
26-
kind: ServiceAccount
27-
metadata:
28-
name: klipper-lb
29-
---
30-
apiVersion: rbac.authorization.k8s.io/v1
31-
kind: ClusterRole
32-
metadata:
33-
name: klipper-permissions
34-
rules:
35-
- apiGroups: [""]
36-
resources: ["nodes"]
37-
verbs: ["get", "watch", "list"]
38-
- apiGroups: [""]
39-
resources: ["services"]
40-
verbs: ["get", "watch", "list", "write", "patch"]
41-
---
42-
apiVersion: rbac.authorization.k8s.io/v1
43-
kind: ClusterRoleBinding
44-
metadata:
45-
name: klipper-permissions-binding
46-
subjects:
47-
- kind: ServiceAccount
48-
name: klipper-lb
49-
namespace: kube-system
50-
roleRef:
51-
apiGroup: rbac.authorization.k8s.io
52-
kind: ClusterRole
53-
name: klipper-permissions
54-
---
55-
apiVersion: apps/v1
56-
kind: DaemonSet
57-
metadata:
58-
name: svclb-klipper
59-
spec:
60-
revisionHistoryLimit: 10
61-
selector:
62-
matchLabels:
63-
app: svclb-klipper
64-
template:
65-
metadata:
66-
creationTimestamp: null
67-
labels:
68-
app: svclb-klipper
69-
spec:
70-
serviceAccountName: klipper-lb
71-
containers:
72-
- env:
73-
- name: SRC_PORT
74-
value: "80"
75-
- name: DEST_PROTO
76-
value: TCP
77-
- name: DEST_PORT
78-
value: "80"
79-
- name: DEST_ADDR
80-
value: "ambassador.ambassador"
81-
image: inercia/klipper-lb:latest
82-
imagePullPolicy: Always
83-
name: lb-port-80
84-
ports:
85-
- containerPort: 80
86-
hostPort: 80
87-
name: lb-port-80
88-
protocol: TCP
89-
resources: {}
90-
securityContext:
91-
capabilities:
92-
add:
93-
- NET_ADMIN
94-
terminationMessagePath: /dev/termination-log
95-
terminationMessagePolicy: File
96-
- env:
97-
- name: SRC_PORT
98-
value: "443"
99-
- name: DEST_PROTO
100-
value: TCP
101-
- name: DEST_PORT
102-
value: "443"
103-
- name: DEST_ADDR
104-
value: "ambassador.ambassador"
105-
image: inercia/klipper-lb:latest
106-
imagePullPolicy: Always
107-
name: lb-port-443
108-
ports:
109-
- containerPort: 443
110-
hostPort: 443
111-
name: lb-port-443
112-
protocol: TCP
113-
resources: {}
114-
securityContext:
115-
capabilities:
116-
add:
117-
- NET_ADMIN
118-
terminationMessagePath: /dev/termination-log
119-
terminationMessagePolicy: File
120-
dnsPolicy: ClusterFirst
121-
restartPolicy: Always
122-
schedulerName: default-scheduler
123-
securityContext: {}
124-
terminationGracePeriodSeconds: 30
125-
updateStrategy:
126-
rollingUpdate:
127-
maxUnavailable: 1
128-
type: RollingUpdate

0 commit comments

Comments
 (0)