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/bash | |
yum groupinstall -y "@development" | |
yum install -y gcc python3 pkgconfig openssl-devel tcl jemalloc jemalloc-devel wget | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make PREFIX=/usr USE_SYSTEMD=no MALLOC=jemalloc V=1 BUILD_TLS=yes install | |
chmod a+x src/redis-cli | |
cp src/redis-cli /usr/bin/ |
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
pipeline { | |
agent any | |
options { | |
preserveStashes(buildCount: 10) | |
} | |
stages { | |
stage('Build') { | |
steps { | |
echo 'Building..' | |
sh """ |
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
map $sent_http_content_type $expires { | |
"text/html" epoch; | |
"text/html; charset=utf-8" epoch; | |
default off; | |
} |
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
_$ kp kube-system | |
NAME READY STATUS RESTARTS AGE | |
alb-ingress-controller-75c8c57884-5ch5k 1/1 Running 0 6m47s | |
coredns-59dfd6b59f-4kvm6 0/1 Pending 0 10m | |
coredns-59dfd6b59f-8gn62 0/1 Pending 0 11m | |
efs-csi-node-4frkb 0/3 Pending 0 33m | |
efs-csi-node-5lztd 0/3 Pending 0 33m | |
efs-csi-node-7d6j2 0/3 Pending 0 33m | |
efs-csi-node-ll5cj 0/3 Pending 0 5m48s | |
efs-csi-node-ssff6 0/3 Pending 0 33m |
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
paul.lupu@SVROLP00209:~/work/other/mi-kube-cluster/efs-setup-dev:(master)\ | |
_$ kubectl get nodes -o wide | |
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME | |
ip-172-31-167-34.ec2.internal Ready <none> 4d22h v1.15.10-eks-bac369 172.31.167.34 3.220.167.72 Amazon Linux 2 4.14.165-133.209.amzn2.x86_64 docker://18.9.9 | |
paul.lupu@SVROLP00209:~/work/other/mi-kube-cluster/efs-setup-dev:(master)\ | |
_$ kubectl get events | |
LAST SEEN TYPE REASON OBJECT MESSAGE | |
75s Warning FailedScheduling pod/mi-web-dev-mobileinsight-web-876664d6d-hzltx 0/1 nodes are available: 1 Insufficient pods. | |
56m Normal SuccessfulCreate replicaset/mi-web-dev-mobileinsight-web-876664d6d Created pod: mi-web-dev-mobileinsight-web-876664d6d-hzltx | |
56m Normal ScalingReplicaSet deployment/mi-web-dev-mobilei |
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 describe pods mi-web-dev-mobileinsight-web-876664d6d-hzltx | |
Name: mi-web-dev-mobileinsight-web-876664d6d-hzltx | |
Namespace: default | |
Priority: 0 | |
Node: <none> | |
Labels: app.kubernetes.io/instance=mi-web-dev | |
app.kubernetes.io/name=mobileinsight-web | |
pod-template-hash=876664d6d | |
Annotations: kubernetes.io/psp: eks.privileged | |
Status: Pending |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: example-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
nginx.ingress.kubernetes.io/force-ssl-redirect: "false" | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
tls: |
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
paul.lupu@SVROLP00209:~/work/other/mi-kube-cluster/ingress:(master)\ | |
_$ kk get pods -n kube-system | |
NAME READY STATUS RESTARTS AGE | |
alb-ingress-controller-75c8c57884-vzp2j 1/1 Running 0 12s | |
aws-node-ckbf2 1/1 Running 0 155m | |
coredns-59dfd6b59f-f6xtv 1/1 Running 0 169m | |
coredns-59dfd6b59f-k6c2n 1/1 Running 0 169m | |
kube-proxy-dzgzq 1/1 Running 0 155m | |
paul.lupu@SVROLP00209:~/work/other/mi-kube-cluster/ingress:(master)\ | |
_$ kk logs alb-ingress-controller-75c8c57884-vzp2j -n kube-system |
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
_$ kk logs alb-ingress-controller-75c8c57884-2c4vf -n kube-system | |
------------------------------------------------------------------------------- | |
AWS ALB Ingress controller | |
Release: v1.1.5 | |
Build: git-2560c813 | |
Repository: https://github.com/kubernetes-sigs/aws-alb-ingress-controller.git | |
------------------------------------------------------------------------------- | |
W0411 18:51:28.575600 1 client_config.go:549] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work. | |
I0411 18:51:28.611952 1 controller.go:121] kubebuilder/controller "level"=0 "msg"="Starting EventSource" "controller"="alb-ingress-controller" "source"={"Type":{"metadata":{"creationTimestamp":null}}} |
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
# AWS Playbook | |
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: False | |
vars: | |
key_name: troc-ec2-key | |
region: us-east-1 |
NewerOlder