Created
February 27, 2018 22:13
-
-
Save jpetazzo/c53a28b5b7fdae88bc3c5f0945552c04 to your computer and use it in GitHub Desktop.
This will expose your Kubernetes dashboard over HTTP (stripping SSL). VERY DANGEROUS, DO NOT USE IN PRODUCTION!!!
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "2" | |
creationTimestamp: null | |
generation: 1 | |
labels: | |
run: socat | |
name: socat | |
namespace: kube-system | |
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/deployments/socat | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: socat | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
type: RollingUpdate | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: socat | |
spec: | |
containers: | |
- args: | |
- sh | |
- -c | |
- apk add --no-cache socat && socat TCP-LISTEN:80,fork,reuseaddr OPENSSL:kubernetes-dashboard:443,verify=0 | |
image: alpine | |
imagePullPolicy: Always | |
name: socat | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
status: {} | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: socat | |
name: socat | |
namespace: kube-system | |
selfLink: /api/v1/namespaces/kube-system/services/socat | |
spec: | |
externalTrafficPolicy: Cluster | |
ports: | |
- port: 80 | |
protocol: TCP | |
targetPort: 80 | |
selector: | |
run: socat | |
sessionAffinity: None | |
type: NodePort | |
status: | |
loadBalancer: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment