mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 2 | # Modifications Copyright © 2018-2020 AT&T Intellectual Property |
Andreas Geissler | 5768113 | 2024-07-29 10:18:26 +0200 | [diff] [blame^] | 3 | # Modifications Copyright © 2024 Deutsche Telekom |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 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 | ################################################################# |
| 18 | # Global configuration defaults. |
| 19 | ################################################################# |
| 20 | global: |
| 21 | nodePortPrefix: 302 |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 22 | persistence: {} |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 23 | |
| 24 | ################################################################# |
| 25 | # Application configuration defaults. |
| 26 | ################################################################# |
| 27 | # application image |
jhh | 9b28e0e | 2019-06-26 22:24:28 -0500 | [diff] [blame] | 28 | image: sonatype/nexus:2.14.13-01 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 29 | pullPolicy: Always |
| 30 | |
| 31 | # flag to enable debugging - application support required |
| 32 | debugEnabled: false |
| 33 | |
| 34 | # application configuration |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 35 | config: {} |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 36 | |
| 37 | # default number of instances |
| 38 | replicaCount: 1 |
| 39 | |
| 40 | nodeSelector: {} |
| 41 | |
| 42 | affinity: {} |
| 43 | |
| 44 | # probe configuration parameters |
| 45 | liveness: |
BorislavG | 16fc760 | 2018-06-13 10:57:51 +0000 | [diff] [blame] | 46 | initialDelaySeconds: 180 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 47 | periodSeconds: 10 |
| 48 | # necessary to disable liveness probe when setting breakpoints |
| 49 | # in debugger so K8s doesn't restart unresponsive container |
| 50 | enabled: true |
| 51 | |
| 52 | readiness: |
BorislavG | 16fc760 | 2018-06-13 10:57:51 +0000 | [diff] [blame] | 53 | initialDelaySeconds: 60 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 54 | periodSeconds: 10 |
| 55 | path: /nexus/service/local/status |
| 56 | |
| 57 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 58 | type: ClusterIP |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 59 | name: policy-nexus |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 60 | internalPort: 8081 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 61 | ports: |
| 62 | - name: http |
| 63 | port: 8081 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 64 | |
| 65 | ingress: |
| 66 | enabled: false |
| 67 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 68 | serviceMesh: |
| 69 | authorizationPolicy: |
| 70 | authorizedPrincipals: [] |
| 71 | |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 72 | ## Persist data to a persitent volume |
| 73 | persistence: |
| 74 | enabled: true |
| 75 | volumeReclaimPolicy: Retain |
Sylvain Desbureaux | dfa9a9b | 2019-08-29 17:35:51 +0200 | [diff] [blame] | 76 | accessMode: ReadWriteOnce |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 77 | size: 2Gi |
| 78 | mountPath: /dockerdata-nfs |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 79 | mountSubPath: policy/nexus/data |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 80 | |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 81 | # Segregation for Different environment (Small and Large) |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 82 | # Resource Limit flavor - By Default using small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 83 | resources: |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 84 | flavor: small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 85 | small: |
| 86 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 87 | cpu: "1" |
| 88 | memory: "1Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 89 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 90 | cpu: "1m" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 91 | memory: "500Mi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 92 | large: |
| 93 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 94 | cpu: "2" |
| 95 | memory: "2Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 96 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 97 | cpu: "2m" |
| 98 | memory: "1Gi" |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 99 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 100 | |
Andreas Geissler | 5768113 | 2024-07-29 10:18:26 +0200 | [diff] [blame^] | 101 | securityContext: |
| 102 | user_id: 100 |
| 103 | group_id: 102 |
| 104 | |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 105 | #Pods Service Account |
| 106 | serviceAccount: |
| 107 | nameOverride: policy-nexus |
| 108 | roles: |
| 109 | - nothing |