...
1# This yaml enables an easier migration of the consul connect integration
2# from the `default` namespace to the `ambassador` namespace
3# (as it is now specified in ambassador-consul-connector.yaml)
4apiVersion: v1
5kind: ServiceAccount
6metadata:
7 name: ambassador-consul-connect
8 namespace: default
9---
10apiVersion: getambassador.io/v2
11kind: TLSContext
12metadata:
13 name: ambassador-consul
14 namespace: default
15spec:
16 hosts: []
17 secret: ambassador-consul-connect
18---
19apiVersion: v1
20kind: Service
21metadata:
22 name: ambassador-consul-connector
23 namespace: default
24 annotations:
25 a8r.io/owner: "Ambassador Labs"
26 a8r.io/repository: github.com/datawire/ambassador
27 a8r.io/description: "The Ambassador Edge Stack Consul Connect integration."
28 a8r.io/documentation: https://www.getambassador.io/docs/edge-stack/latest/
29 a8r.io/chat: http://a8r.io/Slack
30 a8r.io/bugs: https://github.com/datawire/ambassador/issues
31 a8r.io/support: https://www.getambassador.io/about-us/support/
32 a8r.io/dependencies: "Consul"
33spec:
34 ports:
35 - name: ambassador-consul-connector
36 port: 80
37 selector:
38 component: consul-connect
39---
40apiVersion: apps/v1
41kind: Deployment
42metadata:
43 name: ambassador-consul-connect-integration
44 namespace: default
45 labels:
46 app: ambassador
47 component: consul-connect
48spec:
49 replicas: 1
50 selector:
51 matchLabels:
52 app: ambassador
53 component: consul-connect
54 strategy:
55 type: RollingUpdate
56 template:
57 metadata:
58 labels:
59 app: ambassador
60 component: consul-connect
61 annotations:
62 "consul.hashicorp.com/connect-inject": "false"
63 spec:
64 serviceAccountName: ambassador-consul-connect
65 terminationGracePeriodSeconds: 0
66 containers:
67 - name: consul-connect-integration
68 image: docker.io/datawire/aes:$version$
69 command: [ "consul_connect_integration" ]
70 resources:
71 limits:
72 cpu: 200m
73 memory: 200Mi
74 requests:
75 cpu: 100m
76 memory: 50Mi
77 env:
78 # Consul runs as a DaemonSet on each Node therefore we need to talk to the Host machine.
79 # See: https://www.consul.io/docs/platform/k8s/run.html#architecture
80 - name: _CONSUL_HOST
81 valueFrom:
82 fieldRef:
83 fieldPath: status.hostIP
84 - name: _AMBASSADOR_TLS_SECRET_NAMESPACE
85 valueFrom:
86 fieldRef:
87 fieldPath: metadata.namespace
View as plain text