Skip to content

Instantly share code, notes, and snippets.

View talf's full-sized avatar

Tal Fishler talf

View GitHub Profile
@talf
talf / keybase.md
Last active September 20, 2018 09:18
keybase.md

Keybase proof

I hereby claim:

  • I am talf on github.
  • I am tfishler (https://keybase.io/tfishler) on keybase.
  • I have a public key ASAJgG__jY5AdQ8BDCS9bxrOJVaaOsInij9xlv5yn_PXygo

To claim this, I am signing this object:

@talf
talf / NOTES.txt
Created June 22, 2023 10:10
Uploaded by script
The ingress-nginx controller has been installed.
{{- if contains "NodePort" .Values.controller.service.type }}
Get the application URL by running these commands:
{{- if (not (empty .Values.controller.service.nodePorts.http)) }}
export HTTP_NODE_PORT={{ .Values.controller.service.nodePorts.http }}
{{- else }}
export HTTP_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath="{.spec.ports[0].nodePort}" {{ include "ingress-nginx.controller.fullname" . }})
{{- end }}
@talf
talf / _helpers.tpl
Created June 22, 2023 10:10
Uploaded by script
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "ingress-nginx.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
@talf
talf / _params.tpl
Created June 22, 2023 10:10
Uploaded by script
{{- define "ingress-nginx.params" -}}
- /nginx-ingress-controller
{{- if .Values.defaultBackend.enabled }}
- --default-backend-service=$(POD_NAMESPACE)/{{ include "ingress-nginx.defaultBackend.fullname" . }}
{{- end }}
{{- if and .Values.controller.publishService.enabled .Values.controller.service.enabled }}
{{- if .Values.controller.service.external.enabled }}
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
{{- else if .Values.controller.service.internal.enabled }}
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}-internal
@talf
talf / NOTES.txt
Created June 22, 2023 10:13
Uploaded by script
The ingress-nginx controller has been installed.
{{- if contains "NodePort" .Values.controller.service.type }}
Get the application URL by running these commands:
{{- if (not (empty .Values.controller.service.nodePorts.http)) }}
export HTTP_NODE_PORT={{ .Values.controller.service.nodePorts.http }}
{{- else }}
export HTTP_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath="{.spec.ports[0].nodePort}" {{ include "ingress-nginx.controller.fullname" . }})
{{- end }}
@talf
talf / _helpers.tpl
Created June 22, 2023 10:13
Uploaded by script
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "ingress-nginx.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
@talf
talf / _params.tpl
Created June 22, 2023 10:13
Uploaded by script
{{- define "ingress-nginx.params" -}}
- /nginx-ingress-controller
{{- if .Values.defaultBackend.enabled }}
- --default-backend-service=$(POD_NAMESPACE)/{{ include "ingress-nginx.defaultBackend.fullname" . }}
{{- end }}
{{- if and .Values.controller.publishService.enabled .Values.controller.service.enabled }}
{{- if .Values.controller.service.external.enabled }}
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}
{{- else if .Values.controller.service.internal.enabled }}
- --publish-service={{ template "ingress-nginx.controller.publishServicePath" . }}-internal
@talf
talf / NOTES.txt
Created June 22, 2023 10:18
Uploaded by script
"The ingress-nginx controller has been installed.\n\n{{- if contains \"NodePort\" .Values.controller.service.type }}\nGet the application URL by running these commands:\n\n{{- if (not (empty .Values.controller.service.nodePorts.http)) }}\n export HTTP_NODE_PORT={{ .Values.controller.service.nodePorts.http }}\n{{- else }}\n export HTTP_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath=\"{.spec.ports[0].nodePort}\" {{ include \"ingress-nginx.controller.fullname\" . }})\n{{- end }}\n{{- if (not (empty .Values.controller.service.nodePorts.https)) }}\n export HTTPS_NODE_PORT={{ .Values.controller.service.nodePorts.https }}\n{{- else }}\n export HTTPS_NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} get services -o jsonpath=\"{.spec.ports[1].nodePort}\" {{ include \"ingress-nginx.controller.fullname\" . }})\n{{- end }}\n export NODE_IP=$(kubectl --namespace {{ .Release.Namespace }} get nodes -o jsonpath=\"{.items[0].status.addresses[1].address}\")\n\n echo \"Visit http:
@talf
talf / _helpers.tpl
Created June 22, 2023 10:18
Uploaded by script
"{{/* vim: set filetype=mustache: */}}\n{{/*\nExpand the name of the chart.\n*/}}\n{{- define \"ingress-nginx.name\" -}}\n{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix \"-\" -}}\n{{- end -}}\n\n{{/*\nCreate chart name and version as used by the chart label.\n*/}}\n{{- define \"ingress-nginx.chart\" -}}\n{{- printf \"%s-%s\" .Chart.Name .Chart.Version | replace \"+\" \"_\" | trunc 63 | trimSuffix \"-\" -}}\n{{- end -}}\n\n{{/*\nCreate a default fully qualified app name.\nWe truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).\n*/}}\n{{- define \"ingress-nginx.fullname\" -}}\n{{- if .Values.fullnameOverride -}}\n{{- .Values.fullnameOverride | trunc 63 | trimSuffix \"-\" -}}\n{{- else -}}\n{{- $name := default .Chart.Name .Values.nameOverride -}}\n{{- if contains $name .Release.Name -}}\n{{- .Release.Name | trunc 63 | trimSuffix \"-\" -}}\n{{- else -}}\n{{- printf \"%s-%s\" .Release.Name $name | trunc 63 | trimSuffix \"-\" -}}\n{{- end -}}\
@talf
talf / _params.tpl
Created June 22, 2023 10:18
Uploaded by script
"{{- define \"ingress-nginx.params\" -}}\n- /nginx-ingress-controller\n{{- if .Values.defaultBackend.enabled }}\n- --default-backend-service=$(POD_NAMESPACE)/{{ include \"ingress-nginx.defaultBackend.fullname\" . }}\n{{- end }}\n{{- if and .Values.controller.publishService.enabled .Values.controller.service.enabled }}\n{{- if .Values.controller.service.external.enabled }}\n- --publish-service={{ template \"ingress-nginx.controller.publishServicePath\" . }}\n{{- else if .Values.controller.service.internal.enabled }}\n- --publish-service={{ template \"ingress-nginx.controller.publishServicePath\" . }}-internal\n{{- end }}\n{{- end }}\n- --election-id={{ include \"ingress-nginx.controller.electionID\" . }}\n- --controller-class={{ .Values.controller.ingressClassResource.controllerValue }}\n{{- if .Values.controller.ingressClass }}\n- --ingress-class={{ .Values.controller.ingressClass }}\n{{- end }}\n- --configmap={{ default \"$(POD_NAMESPACE)\" .Values.controller.configMapNamespace }}/{{ include \"ingress-nginx.