ktimoney | 3570d5a | 2022-05-24 13:54:55 +0100 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright (C) 2022 Nordix Foundation. |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | # |
ktimoney | 8ead72a | 2022-04-12 15:10:10 +0100 | [diff] [blame] | 20 | apiVersion: apps/v1 |
| 21 | kind: Deployment |
| 22 | metadata: |
| 23 | name: auth-code-deployment |
| 24 | namespace: default |
| 25 | labels: |
| 26 | app: auth-code |
| 27 | spec: |
| 28 | selector: |
| 29 | matchLabels: |
| 30 | app: auth-code |
| 31 | template: |
| 32 | metadata: |
| 33 | labels: |
| 34 | app: auth-code |
| 35 | version: v1 |
| 36 | spec: |
| 37 | containers: |
| 38 | - name: auth-code |
| 39 | image: ktimoney/rapps-rapp-auth-provider |
| 40 | imagePullPolicy: IfNotPresent |
| 41 | ports: |
| 42 | - containerPort: 9000 |
| 43 | resources: |
| 44 | limits: |
| 45 | memory: 256Mi |
| 46 | cpu: "250m" |
| 47 | requests: |
| 48 | memory: 128Mi |
| 49 | cpu: "80m" |
| 50 | replicas: 1 |
| 51 | --- |
| 52 | apiVersion: v1 |
| 53 | kind: Service |
| 54 | metadata: |
| 55 | name: auth-code |
| 56 | namespace: default |
| 57 | spec: |
| 58 | selector: |
| 59 | app: auth-code |
| 60 | ports: |
| 61 | - protocol: TCP |
| 62 | port: 80 |
| 63 | targetPort: 9000 |
| 64 | nodePort: 31233 |
| 65 | type: NodePort |