<p>We have constantly issues with our OpenShift Deployments. Credentials are missing suddenly (or suddenly we have the wrong credentials configured), deployments are scaled up and down suddenly etc.</p>
<p>Nobody of the team is aware of anything he did. However I am quite sure that this happens unknowingly from my recent experiences.</p>
<p>Is there any way to check the history of modifications to a resource? E.g. the last <code>&quot;oc/kubectl apply -f&quot;</code> - optimally with the contents that were modified and the user?</p>

peez80
<p>For a one off issue, you can also look at the replicaSets present in that namespace and examine them for differences.  Depending on how much history you keep it may have already been lost, if it was present to begin with.</p>
<p>Try:</p>
<pre><code>kubectl get rs -n my-namespace
</code></pre>
<p>Or, dealing with DeploymentConfigs, replicaControllers:</p>
<pre><code>oc get rc -n my-namespace
</code></pre>
<p>For credentials, assuming those are in a secret and not the deployment itself, you wouldn't have that history without going to audit logs.</p>
