Snippets Collections
kubectl create deploy nginx --image=nginx -n rbac-test
kubectl create namespace rbac-test
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: loop
  name: loop
spec:
  containers:
  - args:
    - /bin/sh
    - -c
    - while true; do date; sleep 10; done
    image: busybox
    name: loop
    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Never
status: {}
apiVersion: v1
kind: Pod
metadata:
  name: ckad-nginx
spec:
  containers:
  -  name: nginx
     image: nginx:1.17.10
     ports:
     -  containerPort: 80
     env:
       -  name: DB_URL
          value: postgresql://mydb:5432
       -  name: DB_USERNAME
          value: admin
kubectl delete pod nginx --grace-period=0 --force
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: mypod
  name: mypod
spec:
  containers:
  - command: ["/bin/sh"]
    args: ["-c", "while true; do date; sleep 10; done"]
    image: busybox
    name: mypod
    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Never
status: {}
apiVersion: v1
kind: Pod
metadata:
  name: spring-boot-app
spec:
  containers:
  - image: bmuschko/spring-boot-app:1.5.3
    name: spring-boot-app
    env:
    - name: SPRING_PROFILES_ACTIVE
      value: prod
    - name: VERSION
      value: '1.5.3'
kubectl exec -it hazelcast -- /bin/sh
kubectl describe pods hazelcast
apiVersion: v1
kind: Pod
metadata:
  name: hazelcast
  labels:
    app: hazelcast
    env: prod
spec:
  containers:
  - env:
    - name: DNS_DOMAIN
      value: cluster
    image: hazelcast/hazelcast
    name: hazelcast
    ports:
    - containerPort: 5701
kubectl run hazelcast --image=hazelcast/hazelcast --port=5701 \
  --env="DNS_DOMAIN=cluster" --labels="app=hazelcast,env=prod"
docker run -d -p 8080:8080 java-hello-world:1.0.0
docker build -t java-hello-world:1.0.0 .
FROM openjdk:11-jre-slim
WORKDIR /app
COPY target/java-hello-world-0.0.1.jar java-hello-world.jar
ENTRYPOINT ["java", "-jar", "/app/java-hello-world.jar"]
EXPOSE 8080
kubectl run frontend --image=nginx --port=80 \
  -o yaml --dry-run=client > pod.yaml
star

Sun Dec 06 2020 19:49:11 GMT+0000 (UTC)

#aws,ckad,eks #aws,ckad
star

Sun Dec 06 2020 19:48:45 GMT+0000 (UTC)

#aws,ckad #eks
star

Sun Nov 29 2020 21:02:47 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 21:02:17 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 20:39:25 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:40:35 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:40:12 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:39:10 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:38:32 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:38:09 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:25:24 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:24:50 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:22:49 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:22:05 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:21:12 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:20:07 GMT+0000 (UTC)

#aws,ckad
star

Sun Nov 29 2020 18:19:06 GMT+0000 (UTC)

#aws,ckad

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension