@@ -13,57 +13,54 @@ spec:
1313 labels :
1414 app : fleet-telemetry-consumer
1515 spec :
16- securityContext :
17- runAsNonRoot : true
18- seccompProfile :
19- type : RuntimeDefault
2016 containers :
2117 - name : tesla-http-proxy
2218 image : tesla/vehicle-command:latest
19+ imagePullPolicy : Always
2320 ports :
2421 - containerPort : 4443
2522 env :
2623 - name : TESLA_HTTP_PROXY_TLS_CERT
27- value : /config /tls.crt
24+ value : /secrets/tesla-ssl /tls.crt
2825 - name : TESLA_HTTP_PROXY_TLS_KEY
29- value : /config /tls.key
26+ value : /secrets/tesla-ssl /tls.key
3027 - name : TESLA_HTTP_PROXY_HOST
3128 value : " 0.0.0.0"
3229 - name : TESLA_HTTP_PROXY_PORT
3330 value : " 4443"
3431 - name : TESLA_HTTP_PROXY_TIMEOUT
3532 value : " 10s"
3633 - name : TESLA_KEY_FILE
37- value : /secret /private-key.pem
34+ value : /secrets/fleet-api /private-key.pem
3835 - name : TESLA_VERBOSE
3936 value : " true"
4037 volumeMounts :
41- - name : certs
42- mountPath : /config
43- - name : fleet-key-secret
44- mountPath : /secret
38+ - name : fleet-api
39+ mountPath : /secrets/fleet-api
40+ - name : tesla-ssl
41+ mountPath : /secrets/tesla-ssl
4542 - name : fleet-telemetry-consumer
4643 image : quay.io/rajsinghcpre/fleet-telemetry-consumer:v0.0.27
47- command : ["/fleet-telemetry-consumer", "-config=/etc/fleet-telemetry-consumer/config.json "]
44+ command : ["main.go "]
4845 ports :
4946 - containerPort : 3000
5047 volumeMounts :
51- - name : config
52- mountPath : /etc/fleet-telemetry-consumer
53- - name : certs
54- mountPath : /etc/ssl/certs
55- - name : pg-secret
48+ - name : tesla-ssl
49+ mountPath : /secrets/tesla-ssl
50+ - name : fleet-api
51+ mountPath : /secrets/fleet-api
52+ - name : pg
5653 mountPath : /secrets/pg
5754 volumes :
58- - name : config
59- configMap :
60- name : fleet-telemetry-consumer-config
61- - name : certs
62- secret :
63- secretName : tesla-raj-tls
64- - name : pg-secret
65- secret :
66- secretName : fleet-telemetry-consumer-db-app
55+ - name : tesla-ssl
56+ secret :
57+ secretName : tesla-raj-tls
58+ - name : fleet-api
59+ secret :
60+ secretName : tesla-fleet-api
61+ - name : pg
62+ secret :
63+ secretName : fleet-telemetry-consumer-db-app
6764---
6865apiVersion : v1
6966kind : Service
7673 - protocol : TCP
7774 port : 80
7875 targetPort : 3000
79- type : ClusterIP
76+ type : ClusterIP
77+ ---
78+ apiVersion : gateway.networking.k8s.io/v1
79+ kind : HTTPRoute
80+ metadata :
81+ name : fleet-telemetry-consumer
82+ spec :
83+ parentRefs :
84+ - group : gateway.networking.k8s.io
85+ kind : Gateway
86+ name : robbinsdale
87+ namespace : envoy-gateway-system
88+ hostnames :
89+ - " tesla.rajsingh.info"
90+ rules :
91+ - backendRefs :
92+ - group : " "
93+ kind : Service
94+ name : fleet-telemetry-consumer
95+ port : 80
96+ weight : 1
97+ matches :
98+ - path :
99+ type : PathPrefix
100+ value : /
0 commit comments