<p>I'm looking to find a way to write a scaler for my application which is running on Minikube to scale it up and down based on Time Stamps. Any idea?</p>

ahmokhtari
<p>That would be an <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/" rel="nofollow noreferrer">Horizontal Pod Autoscaler</a> (see its <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/" rel="nofollow noreferrer">Walkthrough here</a>), which would  automatically scales the number of pods in a replication controller, deployment or replica set based on observed CPU utilization (or, with <strong><a href="https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/custom-metrics-api.md" rel="nofollow noreferrer">custom metrics support</a></strong>, on some other application-provided metrics)</p>

<p>In your case, the custom metric would be the time.</p>

<p>You can then follow "<a href="https://itsmetommy.com/2018/07/01/kubernetes-horizontal-pod-autoscaler-using-minikube/" rel="nofollow noreferrer">Kubernetes: Horizontal Pod Autoscaler using Minikube</a>" from <a href="https://twitter.com/r1tommy" rel="nofollow noreferrer">Tommy Elmesewdy</a> as a practical example to implement one such autoscaler on Minikube.</p>

<p>In your case, you should ensure custom metrics are enabled:</p>

<pre><code>minikube start --extra-config kubelet.EnableCustomMetrics=true
</code></pre>
