Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Mar 24, 2024
1 parent 17f9542 commit 644ddf1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions labs/1_internals/ex-auditlog-wip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -euxo pipefail

oc login -u developer https://api.crc.testing:6443
oc new-project ml-app
# Pod will crash because of system error
kubectl run nginx --image=nginx



oc login -u kubeadmin https://api.crc.testing:6443
# TODO - Find the audit log for the pod creation
oc adm node-logs crc-ksq4m-master-0 --path=openshift-apiserver/audit.log \
| jq 'select(.user.username == "developer")' | jq 'select(.verb == "create")'| jq 'select(.objectRef.resource == "pods")'

0 comments on commit 644ddf1

Please sign in to comment.