Preparation for CKA with Kubernetes version 1.17.1 on REDHAT 8
% | Domain |
---|---|
08% | Application Lifecycle Management |
12% | Installation, Configuration & Validation |
19% | Core Concepts |
11% | Networking |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"github.com/danicat/simpleansi" | |
"log" |
# Lookup kubernetes subjects based on RBAC | |
# Usage: | |
# rbac-lookup # to list all subjects to a rolebinding or clusterrolebinding | |
# rbac-lookup builder # list all {role,clusterrole}bindings where builder is a subject | |
function rbac-lookup | |
if test "$argv" | |
kubectl get rolebindings,clusterrolebindings \ | |
--all-namespaces \ | |
-o custom-columns=(string join0 'KIND:kind,NAMESPACE:metadata.namespace,NAME:metadata.name,SUBJECT:subjects[?(@.name=="'"$argv"'")].name') | grep -v '<none>' |
Last update: Tue Jan 14 23:15:49 UTC 2020 by @luckylittle
Questions are not from any actual exam!!! | |
Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl | |
and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] | |
Once the job has completed, check the logs to and export the result to pi-result.txt. | |
Solution: |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |