This file contains hidden or 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
FROM php:7.3-apache | |
COPY html /usr/src/app/html | |
WORKDIR /usr/src/app/html | |
EXPOSE 8080 | |
CMD php -S 0.0.0.0:8080 |
This file contains hidden or 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
cat <<-EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: knative-serving | |
- - | |
apiVersion: operator.knative.dev/v1alpha1 | |
kind: KnativeServing | |
metadata: | |
name: knative-serving |
This file contains hidden or 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
service: helloworld | |
app: helloworld-app | |
org: krishnavamsi | |
provider: | |
name: aws | |
runtime: python3.8 | |
profile: serverless-admin | |
region: us-east-1 |
This file contains hidden or 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 | |
def hello(event, context): | |
print("Go Serverless Your function executed successfully!") | |
return "Hello World !" |
This file contains hidden or 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-blue-whale | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: hello-whale-app |
This file contains hidden or 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-blue-whale | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: hello-whale-app |
This file contains hidden or 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 | |
stages { | |
stage('Checkout Source') { | |
steps { | |
git url:'https://github.com/vamsijakkula/hellowhale.git', branch:'master' | |
} |
This file contains hidden or 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: Service | |
metadata: | |
name: hello-blue-whale-svc | |
labels: | |
app: hello-blue-whale-app | |
spec: | |
selector: | |
app: hello-blue-whale-app | |
type: LoadBalancer |
This file contains hidden or 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-blue-whale | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: hello-blue-whale-app | |
template: |
This file contains hidden or 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/canary: "true" | |
nginx.ingress.kubernetes.io/canary-weight: "20" | |
name: green-ingress | |
spec: | |
rules: | |
- host: hello.whale |