Commit 868b0a0c authored by rjshrjndrn's avatar rjshrjndrn
Browse files

nginx public ingress

No related merge requests found
Showing with 47 additions and 43 deletions
+47 -43
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
#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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment