Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created February 25, 2020 17:46
Show Gist options
  • Save salrashid123/88780fc5255e3a901f2a04ad72304f0b to your computer and use it in GitHub Desktop.
Save salrashid123/88780fc5255e3a901f2a04ad72304f0b to your computer and use it in GitHub Desktop.
neg_gcp_yaml_hc
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-deployment
labels:
type: myapp-deployment-label
spec:
replicas: 2
selector:
matchLabels:
type: myapp
template:
metadata:
labels:
type: myapp
tier: frontend
version: v1
spec:
containers:
- name: frontend
image: salrashid123/istioinit:1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /_ah/health
port: 8080
readinessProbe:
httpGet:
path: /_ah/health
port: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: myapp-srv-ingress
annotations:
kubernetes.io/ingress.allow-http: "false"
spec:
tls:
- secretName: gkecert-tmp
rules:
- http:
paths:
- path: /*
backend:
serviceName: myapp-srv
servicePort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: myapp-srv
annotations:
service.alpha.kubernetes.io/app-protocols: '{"fe":"HTTP"}'
cloud.google.com/neg: '{"ingress": true}'
labels:
type: myapp-srv
spec:
ports:
- name: fe
port: 8080
protocol: TCP
targetPort: 8080
selector:
type: myapp
---
apiVersion: v1
data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlEd0RDQ0FxaWdBd0lCQWdJQlBUQU5CZ2txaGtpRzl3MEJBUXNGQURCM01Rc3dDUVlEVlFRR0V3SlZVekVUDQpNQkVHQTFVRUNCTUtRMkZzYVdadmNtNXBZVEVXTUJRR0ExVUVCeE1OVFc5MWJuUmhhVzRnVm1sbGR6RVBNQTBHDQpBMVVFQ2hNR1IyOXZaMnhsTVJNd0VRWURWUVFMRXdwRmJuUmxjbkJ5YVhObE1SVXdFd1lEVlFRREV3eFVaWE4wDQpRMEZtYjNKRlUwOHdIaGN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MEtPSw0KeXBZZ3BpZGNtU0dhUmNtNzQ1VWR4N2FrK0tXNUgyZWJWbVNUTzhyVG9YaUJiNVZKdUFoZFFsRVFwbmF5OC9SdA0KaXJPMXNwamk4a25qVEtuOXpLejRBUUtCZ0I1M2Zjd0k4a2VpYko5QVp0bk94Nk1CWjFBWGU2N1d2eUE4QW5vMA0KSjhWN2J6VFpmWHVmRkFGMDBtS1FVakdDV1RRbjRRVHYvY3pTRDU4VkZWTjNVUldPV1prRmlST21xTjhOWkY3cQ0KTFNDTmpSbkpMaFNRTWRLQldYUlUvWEJhd3kwS05VeThkSDdYdm1ZNHNJMDNyaE8vVC9HYmFSNkZsV3Y3NDlrdA0KYVp1MUFvR0JBTEdXTnV1aE9NQUV4b0dhdmVQMThPZzZBL2VyMzJLb3g5bnIrM3VBTmpEN3J0bFkvNXdFN01rbg0KT09qU1lFNkpvcUVhN3ZkYzh1WUZpbk8rTHlLTnd4WHdRclVQWlRzb0VGVmxGcTZPZzUwYW9BcFFMTGNKRkQ1Vg0KZW5jdS9ad3dURUpzYjYyYWpsdVh2R3FEdWNOVEF2OEowQmJHL0Zhbyt3dEYybzFxTjRtbw0KLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0=
kind: Secret
metadata:
name: gkecert-tmp
namespace: default
type: Opaque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment