barretthousen/env/base/proxy-client-deployment.yaml

55 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: proxy-client
spec:
selector:
matchLabels:
service: proxy-client
template:
metadata:
labels:
service: proxy-client
spec:
containers:
- name: proxy-client
image: barretthousen/service-proxy-client
ports:
- containerPort: 80
name: http
command:
- /opt/proxy-client
resources:
limits:
memory: "128Mi"
cpu: "250m"
volumeMounts:
- name: proxy-client-config
mountPath: /config/
volumes:
- name: proxy-client-config
configMap:
name: proxy-client-config
---
apiVersion: v1
kind: Service
metadata:
name: proxy-client
spec:
selector:
service: proxy-client
ports:
- port: 80
targetPort: 80
---
apiVersion: v1
kind: ConfigMap
metadata:
name: proxy-client-config
data:
config.yaml: |
log_level: 2
port: 80
endpoints:
catalog: local-catalog:5001