16dd9d0a78
After this change we can access any files under /localdist/{designer,loadbuild} using an environment variable for the URL: curl $BUILDER_FILES_URL/localdisk/designer/some/file This change is required by docker build scripts in starlingx/root for projects that use Loci and have MIRROR_LOCAL set to "yes". This change requires one to restart the environment (stx-init-env). CHANGES ======= * New k8s deployment "stx-builder-files-http". Includes a single pod based on the open source "nginx" image. Serves all files under /localdisk/{designer,loadbuild} on port 8088. * k8s.py: fixed problem with distinguishing a pod name that is a prefix of another pod name, eg "builder" vs "builder-files-http" TESTS ===== * Re-build & re-deploy the helm chart using "stx-init-env" * Create a dummy docker image recipe that uses Loci and MIRROR_LOCAL and make sure it does not fail when cloning Story: 2010294 Task: 47307 Signed-off-by: Davlet Panech <davlet.panech@windriver.com> Change-Id: I04e5c6237930fb75a8acbfd65a6479bc06fa6194
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
---
|
|
replicaCount: 1
|
|
|
|
image:
|
|
repository: nginx
|
|
pullPolicy: IfNotPresent
|
|
# Overrides the image tag whose default is the chart appVersion.
|
|
tag: "1.23.3"
|
|
|
|
volumes:
|
|
localdiskDesigner:
|
|
mountPath: /usr/share/nginx/html/localdisk/designer
|
|
hostPath: /localdisk/designer
|
|
localdiskLoadbuild:
|
|
mountPath: /usr/share/nginx/html/localdisk/loadbuild
|
|
hostPath: /localdisk/loadbuild
|
|
|
|
services:
|
|
builderFilesHttpService:
|
|
type: ClusterIP
|
|
port: 8088
|
|
|
|
dnsConfig:
|
|
options:
|
|
- name: ndots
|
|
value: "1"
|
|
|
|
imagePullSecrets: []
|
|
nameOverride: ""
|
|
fullnameOverride: ""
|
|
|
|
podAnnotations: {}
|
|
|
|
podSecurityContext: {}
|
|
# fsGroup: 2000
|
|
|
|
securityContext:
|
|
privileged: true
|
|
# capabilities:
|
|
# drop:
|
|
# - ALL
|
|
# readOnlyRootFilesystem: true
|
|
# runAsNonRoot: true
|
|
# runAsUser: 1000
|
|
|
|
resources: {}
|
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
|
# choice for the user. This also increases chances charts run on environments with little
|
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
# limits:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
# requests:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
|
|
autoscaling:
|
|
enabled: false
|
|
minReplicas: 1
|
|
maxReplicas: 100
|
|
targetCPUUtilizationPercentage: 80
|
|
# targetMemoryUtilizationPercentage: 80
|
|
|
|
nodeSelector: {}
|
|
|
|
tolerations: []
|
|
|
|
affinity: {}
|