Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
868b0a0c
Commit
868b0a0c
authored
5 years ago
by
rjshrjndrn
Browse files
Options
Download
Patches
Plain Diff
nginx public ingress
parent
4ad0cc38
3node
3node_bak_new
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kubernetes/helm_charts/core/nginx-public-ingress/templates/deployment.yaml
+37
-43
...harts/core/nginx-public-ingress/templates/deployment.yaml
kubernetes/helm_charts/core/nginx-public-ingress/values.j2
+10
-0
kubernetes/helm_charts/core/nginx-public-ingress/values.j2
with
47 additions
and
43 deletions
+47
-43
kubernetes/helm_charts/core/nginx-public-ingress/templates/deployment.yaml
+
37
−
43
View file @
868b0a0c
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
{{
include "nginx-public-ingress.fullname" .
}}
name
:
public-nginx-ingress
labels
:
namespace
:
{{
.Values.namespace
}}
{{
- include "nginx-public-ingress.labels" . | nindent 4
}}
spec
:
spec
:
replicas
:
{{
.Values.replicaCount
}}
replicas
:
1
selector
:
selector
:
matchLabels
:
matchLabels
:
{{
- include "nginx-public-ingress.selectorLabels" . | nindent 6
}}
app
:
public-nginx-ingress
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
{{
- include "nginx-public-ingress.selectorLabels" . | nindent 8
}}
app
:
public-nginx-ingress
spec
:
spec
:
{{
-
with
.Values.imagePullSecrets
}}
{{
-
if
.Values.imagePullSecrets
}}
imagePullSecrets
:
imagePullSecrets
:
{{
- toYaml . | nindent 8
}}
-
name
:
{{
.Values.imagepullsecrets
}}
{{
- end
}}
serviceAccountName
:
{{
include "nginx-public-ingress.serviceAccountName" .
}}
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
containers
:
-
name
:
{{
.Chart.Name
}}
securityContext
:
{{
- toYaml .Values.securityContext | nindent 12
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
ports
:
-
name
:
http
containerPort
:
80
protocol
:
TCP
livenessProbe
:
httpGet
:
path
:
/
port
:
http
readinessProbe
:
httpGet
:
path
:
/
port
:
http
resources
:
{{
- toYaml .Values.resources | nindent 12
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- end
}}
{{
- with .Values.affinity
}}
{{
- if .Values.sunbird_portal_player_cdn_enabled
}}
affinity
:
containers
:
{{
- toYaml . | nindent 8
}}
-
name
:
name
{{
- end
}}
image
:
"
{{
.Values.dockerhub
}}/{{
.Values.repository
}}:{{
.Values.image_tag
}}"
{{
- with .Values.tolerations
}}
resources
:
tolerations
:
requests
:
{{
- toYaml . | nindent 8
}}
cpu
:
100m
{{
- end
}}
memory
:
200Mi
ports
:
-
containerPort
:
80
name
:
http
-
containerPort
:
443
name
:
https
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
public-nginx-ingress
namespace
:
{{
.Values.namespace
}}
spec
:
type
:
LoadBalancer
ports
:
-
port
:
80
name
:
http
targetPort
:
80
-
port
:
443
name
:
https
targetPort
:
443
selector
:
app
:
public-nginx-ingress
This diff is collapsed.
Click to expand it.
kubernetes/helm_charts/core/nginx-public-ingress/values.j2
+
10
−
0
View file @
868b0a0c
#jinja2:lstrip_blocks: True
#jinja2:lstrip_blocks: True
namespace: {{ namespace }}
namespace: {{ namespace }}
imagepullsecrets: {{ imagepullsecrets }}
dockerhub: {{ dockerhub }}
replicaCount: {{replicacount|default(1)}}
repository: {{proxy.repository|default('player')}}
image_tag: {{ proxy.image_tag }}
resources:
cpu: {{player_service_cpu|default('50m')}}
memory: {{player_service_memory|default('50Mi')}}
proxyconfig: |
proxyconfig: |
{% if proto=='https' %}
{% if proto=='https' %}
server {
server {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets