apiVersion: v1
kind: ConfigMap
metadata:
name: cloud-ekms-config
namespace: dev
data:
CUSTOM_AUTH_SERVICE_EXTRA: "uFhoVIZI-wni6zwDS-E6xGXPqT-m2ms8GWh"
CUSTOM_APP_TENANT_ID: "c290ed67-bfbf-49eb-a9af-0c8b29ee2ab5"
CUSTOM_APP_TENANT_SECRET: "KyQmKiMtIyokISQoKSglJyktKSYoISQhJSYjLCsqISM"
CUSTOM_NAMESPACE: dev
CUSTOM_ZIPKIN_USE: "false"
CUSTOM_ZIPKIN_BASE_URL: http://127.0.0.1:9411
CUSTOM_APPLICATION_NAME: "EKMS"
CUSTOM_SLEUTH_SAMPLER_PROBABILITY: "0.1"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cloud-cdf-config
namespace: dev
data:
SKMS_API_URL: "http://cloud-skms-service.dev.svc.cluster.local"
CONTAINER_LINKER_SERVER_PORT: "8181"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-ekms-service
namespace: dev
labels:
app: cloud-ekms-service
spec:
replicas: 1
selector:
matchLabels:
app: cloud-ekms-service
template:
metadata:
labels:
app: cloud-ekms-service
spec:
containers:
- name: cloud-ekms-service
image: security365acr.azurecr.io/shieldrm/cloud-ekms:latest
imagePullPolicy: Always
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: cloud-ekms-config
volumeMounts:
- name: cloud-ekms-data
mountPath: /opt/shieldrm/data
- name: nfs-temp-pvc
mountPath: /opt/shieldrm/shw
- name: cloud-containerlinker-service
image: security365acr.azurecr.io/shieldrm/cloud-containerlinker:latest
imagePullPolicy: Always
resources:
requests:
memory: 256Mi
limits:
memory: 512Mi
ports:
- containerPort: 8181
envFrom:
- configMapRef:
name: cloud-cdf-config
volumeMounts:
- name: cloud-ekms-data
mountPath: /opt/shieldrm/data
- name: nfs-temp-pvc
mountPath: /opt/shieldrm/shw
volumes:
- name: cloud-ekms-data
persistentVolumeClaim:
claimName: cloud-ekms-data
- name: nfs-temp-pvc
persistentVolumeClaim:
claimName: nfs-temp-pvc
imagePullSecrets:
- name: security365acr
---
apiVersion: v1
kind: Service
metadata:
labels:
app: cloud-ekms-service
name: cloud-ekms-service
namespace: dev
spec:
type: ClusterIP
ports:
- name : ekms
port : 80
protocol: TCP
targetPort: 8080
- name : metric
port : 9090
protocol: TCP
targetPort: 9090
selector:
app: cloud-ekms-service