This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get deployments | |
744 kubectl get rs | |
745 kubectl delete rs foo | |
746 clear | |
747 kubectl delete deployments oreilly | |
748 clear | |
749 kubectl get pods | |
750 kubectl get pods | |
751 clear | |
752 which kubectl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_update: true | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- gnupg-agent | |
- software-properties-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e -x | |
apt-get --yes --quiet update | |
apt-get --yes --quiet install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
access_key="" | |
secret_key="" | |
def tweets_processor(event, context): | |
tweet = event['data'] | |
print tweet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import json | |
import boto3 | |
import tweepy | |
consumer_key = os.getenv("consumer_key") | |
consumer_secret = os.getenv("consumer_secret") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v2alpha1 | |
kind: CronJob | |
metadata: | |
name: cookie-app | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: linux | |
--- | |
apiVersion: v1 | |
kind: ResourceQuota | |
metadata: | |
name: quota | |
namespace: linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: bazel-build | |
spec: | |
template: | |
metadata: | |
name: bazel | |
spec: | |
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_build", "docker_push") | |
docker_build( | |
name = "nginx", | |
labels = {"maintainer" : "Bitnami <[email protected]>"}, | |
base = "@bitnami_minideb//image:image.tar", | |
debs = [ | |
"@glibc//file", | |
], | |
symlinks = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_build", "docker_push") | |
docker_build( | |
name = "nginx", | |
labels = {"maintainer" : "Bitnami <[email protected]>"}, | |
base = "@bitnami_minideb//image:image.tar", | |
debs = [ | |
"@glibc//file", | |
], | |
symlinks = { |
NewerOlder