Skip to content

Instantly share code, notes, and snippets.

View Pothulapati's full-sized avatar
🎯
Focusing

Tarun Pothulapati Pothulapati

🎯
Focusing
View GitHub Profile
@Pothulapati
Pothulapati / yaml
Last active July 12, 2019 18:44
trafficsplit
apiVersion: split.smi-spec.io/v1alpha1
kind: TrafficSplit
metadata:
name: foobar-rollout
spec:
service: reviews
backends:
- service: reviews-v2
weight: 500m
- service: reviews-v3
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
istio-injection: disabled
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
@Pothulapati
Pothulapati / istio-demo-auth.yaml
Last active August 7, 2019 12:15
Istio Intallation manifest with small configuration changes to Metrics that add the labels required by SMI Metrics to the metrics that Istio exposes.
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
istio-injection: disabled
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
apiVersion: v1
kind: Namespace
metadata:
name: emojivoto
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: emoji
namespace: emojivoto
---
kind: ServiceAccount
apiVersion: v1
---
###
### linkerd-collector RBAC
###
---
kind: Namespace
apiVersion: v1
metadata:
name: linkerd-tracing
annotations:
@Pothulapati
Pothulapati / linkerd-tracing.yaml
Last active October 24, 2019 16:30
Linkerd Tracing YAML
---
###
### linkerd-collector RBAC
###
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: linkerd-collector
namespace: linkerd
---
###
### linkerd-collector RBAC
###
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: linkerd-collector
namespace: linkerd
#!/bin/bash
set -eu
if [ $# -ne 0 ]; then
echo "no arguments allowed for ${0##*/}, given: $*" >&2
exit 64
fi
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd )

So, Add-on Model is planned to be done using helm charts as the underlying tool. The following constraints are present because of that:

  • Sub-charts will live under charts/add-ons as new Helm charts with similar format and templating. As helm supports URL as the repo path for add-ons, They can also later be moved out-of-tree totally.
  • The values of the sub-charts will be overriden by using the name of the add-on field in the parent's i.e linkerd2's values.yaml. These values are considered the defaults and can be overriden using cli or a new values file. charts/add-ons/grafana/values.yaml can left out empty so that we can maintain the config centrally.
  • The requirements.yaml will be updated to have the dependencies. Ex:
dependencies:
- name: partials