-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
278 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Default values for crud-app in the dev environment. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
replicaCount: 1 # Typically lower for development environments | ||
|
||
image: | ||
repository: amits64/crud-app | ||
pullPolicy: IfNotPresent | ||
tag: "dev-${BUILD_NUMBER}" # Use a specific tag for dev | ||
|
||
imagePullSecrets: | ||
- name: my-registry-secret # Optional, if you use private registry | ||
|
||
nameOverride: "crud-app-dev" | ||
fullnameOverride: "crud-app-dev" | ||
|
||
serviceAccount: | ||
create: true | ||
annotations: {} | ||
name: "crud-app-dev-sa" # Specific service account for dev | ||
|
||
podAnnotations: | ||
kubernetes.io/cluster-service: "true" | ||
|
||
podSecurityContext: | ||
fsGroup: 2000 | ||
|
||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: false | ||
runAsNonRoot: false | ||
runAsUser: 1000 | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
|
||
ingress: | ||
enabled: false # Ingress typically not used in dev | ||
className: "" | ||
annotations: {} | ||
hosts: | ||
- host: dev.chart-example.local | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
tls: [] | ||
|
||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
requests: | ||
cpu: 50m | ||
memory: 64Mi | ||
|
||
autoscaling: | ||
enabled: false # Autoscaling usually disabled in dev | ||
minReplicas: 1 | ||
maxReplicas: 2 | ||
targetCPUUtilizationPercentage: 80 | ||
|
||
nodeSelector: | ||
environment: dev | ||
|
||
tolerations: | ||
- key: "environment" | ||
operator: "Equal" | ||
value: "dev" | ||
effect: "NoSchedule" | ||
|
||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "kubernetes.io/role" | ||
operator: "In" | ||
values: | ||
- "dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Default values for crud-app in the qa environment. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
replicaCount: 1 # Typically lower for development environments | ||
|
||
image: | ||
repository: amits64/crud-app | ||
pullPolicy: IfNotPresent | ||
tag: "qa-${BUILD_NUMBER}" # Use a specific tag for qa | ||
|
||
imagePullSecrets: | ||
- name: my-registry-secret # Optional, if you use private registry | ||
|
||
nameOverride: "crud-app-qa" | ||
fullnameOverride: "crud-app-qa" | ||
|
||
serviceAccount: | ||
create: true | ||
annotations: {} | ||
name: "crud-app-qa-sa" # Specific service account for qa | ||
|
||
podAnnotations: | ||
kubernetes.io/cluster-service: "true" | ||
|
||
podSecurityContext: | ||
fsGroup: 2000 | ||
|
||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: false | ||
runAsNonRoot: false | ||
runAsUser: 1000 | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
|
||
ingress: | ||
enabled: false # Ingress typically not used in qa | ||
className: "" | ||
annotations: {} | ||
hosts: | ||
- host: qa.chart-example.local | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
tls: [] | ||
|
||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
requests: | ||
cpu: 50m | ||
memory: 64Mi | ||
|
||
autoscaling: | ||
enabled: false # Autoscaling usually disabled in qa | ||
minReplicas: 1 | ||
maxReplicas: 2 | ||
targetCPUUtilizationPercentage: 80 | ||
|
||
nodeSelector: | ||
environment: qa | ||
|
||
tolerations: | ||
- key: "environment" | ||
operator: "Equal" | ||
value: "qa" | ||
effect: "NoSchedule" | ||
|
||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "kubernetes.io/role" | ||
operator: "In" | ||
values: | ||
- "qa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Default values for crud-app in the prod environment. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
replicaCount: 1 # Typically lower for development environments | ||
|
||
image: | ||
repository: amits64/crud-app | ||
pullPolicy: IfNotPresent | ||
tag: "prod-${BUILD_NUMBER}" # Use a specific tag for prod | ||
|
||
imagePullSecrets: | ||
- name: my-registry-secret # Optional, if you use private registry | ||
|
||
nameOverride: "crud-app-prod" | ||
fullnameOverride: "crud-app-prod" | ||
|
||
serviceAccount: | ||
create: true | ||
annotations: {} | ||
name: "crud-app-prod-sa" # Specific service account for prod | ||
|
||
podAnnotations: | ||
kubernetes.io/cluster-service: "true" | ||
|
||
podSecurityContext: | ||
fsGroup: 2000 | ||
|
||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: false | ||
runAsNonRoot: false | ||
runAsUser: 1000 | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
|
||
ingress: | ||
enabled: false # Ingress typically not used in prod | ||
className: "" | ||
annotations: {} | ||
hosts: | ||
- host: prod.chart-example.local | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
tls: [] | ||
|
||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
requests: | ||
cpu: 50m | ||
memory: 64Mi | ||
|
||
autoscaling: | ||
enabled: false # Autoscaling usually disabled in prod | ||
minReplicas: 1 | ||
maxReplicas: 2 | ||
targetCPUUtilizationPercentage: 80 | ||
|
||
nodeSelector: | ||
environment: prod | ||
|
||
tolerations: | ||
- key: "environment" | ||
operator: "Equal" | ||
value: "prod" | ||
effect: "NoSchedule" | ||
|
||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: "kubernetes.io/role" | ||
operator: "In" | ||
values: | ||
- "prod" |
Oops, something went wrong.