[OOM-K8S-CERT-EXTERNAL-PROVIDER] Mock implementaion enhanced
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / deploy / deployment.yaml
1 # ============LICENSE_START=======================================================
2 # oom-certservice-k8s-external-provider
3 # ================================================================================
4 # Copyright (c) 2019 Smallstep Labs, Inc.
5 # Modifications copyright (C) 2020 Nokia. All rights reserved.
6 # ================================================================================
7 # This source code was copied from the following git repository:
8 # https://github.com/smallstep/step-issuer
9 # The source code was modified for usage in the ONAP project.
10 # ================================================================================
11 # Licensed under the Apache License, Version 2.0 (the "License");
12 # you may not use this file except in compliance with the License.
13 # You may obtain a copy of the License at
14 #
15 #      http://www.apache.org/licenses/LICENSE-2.0
16 #
17 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
22 # ============LICENSE_END=========================================================
23 #
24
25 ---
26 apiVersion: v1
27 kind: Service
28 metadata:
29   annotations:
30     prometheus.io/port: "8443"
31     prometheus.io/scheme: https
32     prometheus.io/scrape: "true"
33   labels:
34     control-plane: controller-manager
35   name: certservice-issuer-controller-manager-metrics-service
36   namespace: onap
37 spec:
38   ports:
39   - name: https
40     port: 8443
41     targetPort: https
42   selector:
43     control-plane: controller-manager
44 ---
45 apiVersion: apps/v1
46 kind: Deployment
47 metadata:
48   labels:
49     control-plane: controller-manager
50   name: certservice-issuer-controller-manager
51   namespace: onap
52 spec:
53   replicas: 1
54   selector:
55     matchLabels:
56       control-plane: controller-manager
57   template:
58     metadata:
59       labels:
60         control-plane: controller-manager
61     spec:
62       containers:
63       - args:
64         - --secure-listen-address=0.0.0.0:8443
65         - --upstream=http://127.0.0.1:8080/
66         - --logtostderr=true
67         - --v=10
68         image: gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0
69         name: kube-rbac-proxy
70         ports:
71         - containerPort: 8443
72           name: https
73       - args:
74         - --metrics-addr=127.0.0.1:8080
75         command:
76         - /oom-certservice-k8s-external-provider
77         image: onap/oom-certservice-k8s-external-provider:1.0.0
78         name: oom-certservice-k8s-external-provider
79         resources:
80           limits:
81             cpu: 250m
82             memory: 128Mi
83           requests:
84             cpu: 100m
85             memory: 64Mi
86       terminationGracePeriodSeconds: 10