Last active
October 25, 2020 23:28
-
-
Save jtfogarty/463f8977153da0e7ce1f184523881caf to your computer and use it in GitHub Desktop.
Octant on k8s cluster
This file contains hidden or 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
FROM alpine:3.12 | |
RUN apk add --no-cache curl | |
WORKDIR /tmp/plug | |
RUN mkdir -p /root/.config/octant/plugins | |
RUN curl -L https://github.com/jenkins-x/octant-jx/releases/download/v0.0.27/octant-jx-linux-amd64.tar.gz | tar xzv | |
RUN mv octant-* /root/.config/octant/plugins | |
WORKDIR /tmp/oct | |
RUN curl -L https://github.com/vmware-tanzu/octant/releases/download/v0.16.1/octant_0.16.1_Linux-64bit.tar.gz | tar xzv | |
RUN mv ./octant_0.16.1_Linux-64bit/octant /root/ | |
WORKDIR /root | |
EXPOSE 80 | |
CMD OCTANT_LISTENER_ADDR=0.0.0.0:80 ./octant --kubeconfig /.kube/config --disable-open-browser |
This file contains hidden or 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: Service | |
metadata: | |
name: octant-service | |
labels: | |
run: octant | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 | |
targetPort: 80 | |
protocol: TCP | |
name: http | |
selector: | |
run: octant | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: octant-deployment | |
spec: | |
selector: | |
matchLabels: | |
run: octant | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
run : octant | |
spec: | |
containers: | |
- name: octant | |
image: 10.10.100.14:5000/octant:1.0 | |
imagePullPolicy: Always | |
volumeMounts: | |
- name: config | |
mountPath: /.kube | |
ports: | |
- containerPort: 80 | |
volumes: | |
- name: config | |
configMap: | |
name: octant-config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment