Last active
September 29, 2017 17:59
-
-
Save webframp/c6fe0812c18d0dd278b594526ea25465 to your computer and use it in GitHub Desktop.
simple starter linkerd k8s objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: l5d-config | |
data: | |
config.yaml: |- | |
admin: | |
ip: 0.0.0.0 | |
port: 9990 | |
namers: | |
- kind: io.l5d.k8s | |
routers: | |
- protocol: http | |
identifier: | |
kind: io.l5d.path | |
segments: 1 | |
consume: false | |
servers: | |
- port: 80 | |
ip: 0.0.0.0 | |
clearContext: true | |
dtab: /svc => /#/io.l5d.k8s/default/http | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
app: l5d | |
name: l5d | |
spec: | |
template: | |
metadata: | |
labels: | |
app: l5d | |
spec: | |
volumes: | |
- name: l5d-config | |
configMap: | |
name: "l5d-config" | |
containers: | |
- name: l5d | |
image: buoyantio/linkerd:1.2.0 | |
env: | |
- name: POD_IP | |
valueFrom: | |
fieldRef: | |
fieldPath: status.podIP | |
args: | |
- /io.buoyant/linkerd/config/config.yaml | |
ports: | |
- name: http | |
containerPort: 80 | |
- name: admin | |
containerPort: 9990 | |
volumeMounts: | |
- name: "l5d-config" | |
mountPath: "/io.buoyant/linkerd/config" | |
readOnly: true | |
- name: kubectl | |
image: buoyantio/kubectl:v1.4.0 | |
args: ["proxy", "-p", "8001"] | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-east-1:OURACCT#:certificate/cert-identifier-uuid" | |
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443" | |
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http" | |
external-dns.alpha.kubernetes.io/hostname: external.dns.name. | |
name: l5d | |
spec: | |
selector: | |
app: l5d | |
type: LoadBalancer | |
ports: | |
- name: https | |
port: 443 | |
targetPort: 80 | |
- name: admin | |
port: 9990 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment