# Source: https://gist.github.com/vfarcic/a5cb2e8dcd1cf9c14194db3310d5c282 | |
######################################################### | |
# Is CUE The Perfect Language For Kubernetes Manifests? # | |
# https://youtu.be/Z-fdFEvgNss # | |
######################################################### | |
# Additional Info: | |
# - Cue: https://cuelang.org | |
# - Helm vs Kustomize - The Fight Between Templating and Patching in Kubernetes: https://youtu.be/ZMFYSm0ldQ0 |
DemoHandler | |
--- | |
def lambda_handler(event, context): | |
print(event) | |
return "hello, world!!" | |
DemoAuthorizer | |
--- |
''' | |
List all inactive user of a GitHub organization | |
See user.py --help for usage. | |
Partially inspired by https://gist.github.com/morido/9817399 | |
''' | |
import sys # to use sys.stdout | |
import os | |
from datetime import datetime | |
from time import strftime | |
import datetime |
#touch.bash | |
#!/bin/bash | |
# import variables from ansible | |
source $1 | |
state=${state:-present} | |
if [[ $state == "present" ]]; then | |
if [ ! -e $file ]; then | |
touch $file | |
echo { \"changed\": true } |
-
abs(float)
- Returns the absolute value of a given float. Example:abs(1)
returns1
, andabs(-1)
would also return1
, whereasabs(-3.14)
would return3.14
. See also thesignum
function. -
basename(path)
- Returns the last element of a path. -
base64decode(string)
- Given a base64-encoded string, decodes it and returns the original string.
##-------------------------- | |
## Terraform: Functions ## | |
##-------------------------- | |
## Open terraform console | |
terraform console | |
####################### | |
## Numeric Functions ## | |
####################### |
QUESTIONS FROM PREVIOUS EXAM | |
Refer : https://www.tutorialspoint.com/jenkins/index.htm (Questions are asked from this site) | |
1. Which of the folowing ways can be used to schedule a build in jenkins? | |
-After completion of other builds | |
-Can be scheduled to run at specific time | |
-By souce code management commits | |
2. To set up slaves/nodes in Jenkins which of the following feature is used? | |
Manage Nodes |
Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.
This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.
There is a companion feature matrix of various tools. Comments are welcome in the same manner.
Tips to pass Certified Kubernetes Application Developer (CKAD) exam | |
Getting started Kubernetes :- | |
a) Book : Kubernetes: Up & Running | |
b) Practice practice & practice with CKAD Exercises | |
the Best Kubernetes CKAD sample exercises which cover all parts of the exam https://github.com/dgkanatsios/CKAD-exercises. | |
c) Again, the best practice is use kubectl command well. Use kubectl to create resources (such as deployment, service, cronjobs, secret, configmap…) instead of creating them from manifest files. | |
Incase you have to edit manifest, use dry-run and -o yamlto save yaml file then edit manifest files. | |
d) Kubernetes in Action by Mario Luksa. The book is the holy bible of Kubernetes, and it basically answer all questions you may have ; | |
e) Whether or not you use Kubernetes at work, you should still provision your own cluster somewhere and play with it. |