Skip to content

Instantly share code, notes, and snippets.

View nepomucen's full-sized avatar

Szymon Janczy nepomucen

View GitHub Profile
@nepomucen
nepomucen / helm_template.yaml
Last active April 21, 2020 10:09
helm template - let users introduce their custom ENVs based on ConfigMap in supported resources
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
@nepomucen
nepomucen / gist:8927b06a9841e668d1158c7cfc4c17d1
Created April 3, 2020 11:18
example.com test with self-signed (metallb in front on Ingress Controller)
curl -v -k https://example.com
* Rebuilt URL to: https://example.com/
* Trying 192.168.99.201...
* TCP_NODELAY set
* Connected to example.com (192.168.99.201) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
@nepomucen
nepomucen / deployment.yaml
Last active April 1, 2020 14:46
ghost deployment template with cloudsql-proxy sidecar for helmv2
{{- if include "ghost.host" . -}}
apiVersion: {{ template "ghost.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ template "ghost.fullname" . }}
labels:
app: "{{ template "ghost.fullname" . }}"
chart: "{{ template "ghost.chart" . }}"
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
@nepomucen
nepomucen / values-istio-gateways.yaml
Created July 2, 2019 13:35
Multiple custom Ingress Istio gateways with helm
# Common settings.
global:
# Omit the istio-sidecar-injector configmap when generate a
# standalone gateway. Gateways may be created in namespaces other
# than `istio-system` and we don't want to re-create the injector
# configmap in those.
omitSidecarInjectorConfigMap: true
# Istio control plane namespace: This specifies where the Istio control
# plane was installed earlier. Modify this if you installed the control
@nepomucen
nepomucen / gist:8318c8d617a98fd70a19cef37fafd82e
Created April 16, 2019 07:28
Ingress Resource for hello-world backend
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: my-got-ingress
spec:
rules:
- http:
paths:
- path: /got-8-premiere
backend: