5,322
edits
Line 193: | Line 193: | ||
You will need to install [https://github.com/kubernetes-sigs/metrics-server metrics-server].<br> | You will need to install [https://github.com/kubernetes-sigs/metrics-server metrics-server].<br> | ||
For testing, you may need to [https://stackoverflow.com/questions/54106725/docker-kubernetes-mac-autoscaler-unable-to-find-metrics allow insecure tls]. | For testing, you may need to [https://stackoverflow.com/questions/54106725/docker-kubernetes-mac-autoscaler-unable-to-find-metrics allow insecure tls]. | ||
==Accessing External Services== | |||
[https://stackoverflow.com/questions/55164223/access-mysql-running-on-localhost-from-minikube access mysql on localhost]<br> | |||
To access services running outside of your kubernetes cluster, including services running directly on a node, you need to add an endpoint and a service.<br> | |||
{{hidden | Example | | |||
<syntaxhighlight lang="yaml"> | |||
apiVersion: v1 | |||
kind: Service | |||
metadata: | |||
name: t440s-wireguard-service | |||
spec: | |||
type: ClusterIP | |||
ports: | |||
- protocol: TCP | |||
port: 52395 | |||
targetPort: 52395 | |||
--- | |||
apiVersion: v1 | |||
kind: Endpoints | |||
metadata: | |||
name: t440s-wireguard-service | |||
subsets: | |||
- addresses: | |||
- ip: 192.168.1.40 | |||
ports: | |||
- port: 52395 | |||
</syntaxhighlight> | |||
}} | |||
==Variants== | ==Variants== |