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 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 21 | persistence: {} |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 22 | |
| 23 | ################################################################# |
| 24 | # Application configuration defaults. |
| 25 | ################################################################# |
| 26 | # application image |
jhh | 9b28e0e | 2019-06-26 22:24:28 -0500 | [diff] [blame] | 27 | image: sonatype/nexus:2.14.13-01 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 28 | pullPolicy: Always |
| 29 | |
| 30 | # flag to enable debugging - application support required |
| 31 | debugEnabled: false |
| 32 | |
| 33 | # application configuration |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 34 | config: {} |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 35 | |
| 36 | # default number of instances |
| 37 | replicaCount: 1 |
| 38 | |
| 39 | nodeSelector: {} |
| 40 | |
| 41 | affinity: {} |
| 42 | |
| 43 | # probe configuration parameters |
| 44 | liveness: |
BorislavG | 16fc760 | 2018-06-13 10:57:51 +0000 | [diff] [blame] | 45 | initialDelaySeconds: 180 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 46 | periodSeconds: 10 |
| 47 | # necessary to disable liveness probe when setting breakpoints |
| 48 | # in debugger so K8s doesn't restart unresponsive container |
| 49 | enabled: true |
| 50 | |
| 51 | readiness: |
BorislavG | 16fc760 | 2018-06-13 10:57:51 +0000 | [diff] [blame] | 52 | initialDelaySeconds: 60 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 53 | periodSeconds: 10 |
| 54 | path: /nexus/service/local/status |
| 55 | |
| 56 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 57 | type: ClusterIP |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 58 | name: policy-nexus |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 59 | internalPort: 8081 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame] | 60 | ports: |
| 61 | - name: http |
| 62 | port: 8081 |
mayankg2703 | ced8514 | 2018-03-20 05:42:53 +0000 | [diff] [blame] | 63 | |
| 64 | ingress: |
| 65 | enabled: false |
| 66 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 67 | serviceMesh: |
| 68 | authorizationPolicy: |
| 69 | authorizedPrincipals: [] |
| 70 | |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 71 | ## Persist data to a persitent volume |
| 72 | persistence: |
| 73 | enabled: true |
| 74 | volumeReclaimPolicy: Retain |
Sylvain Desbureaux | dfa9a9b | 2019-08-29 17:35:51 +0200 | [diff] [blame] | 75 | accessMode: ReadWriteOnce |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 76 | size: 2Gi |
| 77 | mountPath: /dockerdata-nfs |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 78 | mountSubPath: policy/nexus/data |
Mahendra Raghuwanshi | 6c9dda8 | 2018-04-26 10:06:27 +0000 | [diff] [blame] | 79 | |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 80 | # Segregation for Different environment (Small and Large) |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 81 | # Resource Limit flavor - By Default using small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 82 | resources: |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 83 | flavor: small |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 84 | small: |
| 85 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 86 | cpu: "1" |
| 87 | memory: "1Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 88 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 89 | cpu: "1m" |
| 90 | memory: "0.5Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 91 | large: |
| 92 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 93 | cpu: "2" |
| 94 | memory: "2Gi" |
vaibhavjayas | 4136f5d | 2018-08-17 07:01:05 +0000 | [diff] [blame] | 95 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame^] | 96 | cpu: "2m" |
| 97 | memory: "1Gi" |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 98 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 99 | |
| 100 | #Pods Service Account |
| 101 | serviceAccount: |
| 102 | nameOverride: policy-nexus |
| 103 | roles: |
| 104 | - nothing |