Skip to content

Instantly share code, notes, and snippets.

View chukaofili's full-sized avatar

Chuka Ofili chukaofili

View GitHub Profile
apiVersion: v1
kind: ConfigMap
metadata:
name: ngrok-configmap
namespace: default
data:
ngrok.yml: |
authtoken: [AUTH_TOKEN HERE]
console_ui: true
web_addr: "0.0.0.0:4040"
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: wildcard-certificate
namespace: cert-manager
labels:
use-clouddns-solver: "true"
spec:
secretName: wildcard-certificate-tls
dnsNames:
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: __EMAIL__
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-prod
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
@chukaofili
chukaofili / echo-server-tls.yaml
Last active November 1, 2019 00:00
echo-server-tls.yaml
apiVersion: v1
kind: Namespace
metadata:
name: echoserver
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: echoserver
namespace: echoserver
@chukaofili
chukaofili / cert-manager-cluster-issuer.yaml
Created May 24, 2018 13:38
cert-manager-cluster-issuer
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging.api.letsencrypt.org/directory
email: [your-email-goes-here]
privateKeySecretRef:
name: letsencrypt-staging
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
@chukaofili
chukaofili / heapster-influxdb-grafana.yaml
Last active January 20, 2023 09:10
heapster-influxdb-grafana
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: monitoring-influxdb
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
@chukaofili
chukaofili / k8s-dashboard-admin-user.yaml
Last active May 18, 2024 06:30
k8s user for dashboard
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: admin-user
Under spec.containers.command add the following:
- --flex-volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume
Under spec.containers.volumeMounts add the following:
- mountPath: /etc/kubernetes/kubelet-plugins/volume
name: flexvolume-mount
readOnly: true
Under spec.volumes update the following: