initial commit
This commit is contained in:
27
kong/templates/configmap.yaml
Normal file
27
kong/templates/configmap.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
config.yaml: "_format_version: \"2.1\"\n\nservices:\n - name: random-cats\n url:
|
||||
https://aws.random.cat/meow\n routes:\n - name: random-cats-route\n paths:\n
|
||||
\ - /random-cats\n\n - name: urban-dictionary\n url: https://api.urbandictionary.com\n
|
||||
\ routes:\n - name: urban-dictionary\n paths:\n - /urban-dictionary\n\n
|
||||
\ - name: cat-facts\n url: https://catfact.ninja/\n routes:\n - name:
|
||||
cat-facts\n paths:\n - /cat-facts\n\n - name: random-meme\n url:
|
||||
https://meme-api.herokuapp.com/gimme\n routes:\n - name: random-meme-route\n
|
||||
\ paths:\n - /random-meme \n\n - name: yomama\n url: https://api.yomomma.info/\n
|
||||
\ routes:\n - name: yomama-route\n paths:\n - /yomama \n\n
|
||||
\ - name: dadjoke\n url: https://icanhazdadjoke.com/\n routes:\n -
|
||||
name: dadjoke\n paths:\n - /dadjoke \n\n - name: random-dogs\n
|
||||
\ url: https://dog.ceo/api/breeds/image/random\n routes:\n - name: random-dogs\n
|
||||
\ paths:\n - /random-dogs \n\n - name: geekjoke\n url: https://geek-jokes.sameerkumar.website/api?format=json\n
|
||||
\ routes:\n - name: geekjoke\n paths:\n - /geekjoke \n
|
||||
\ \n - name: ronswanson\n url: https://ron-swanson-quotes.herokuapp.com/v2/quotes\n
|
||||
\ routes:\n - name: ronswanson\n paths:\n - /ronswanson
|
||||
\ \n\n - name: foaas\n url: http://foaas.com/\n routes:\n - name:
|
||||
foaas\n paths:\n - /foaas \n\n - name: dnmss\n url: http://192.168.1.120:30985\n
|
||||
\ routes:\n - name: dotnet-microservices-services\n paths:\n -
|
||||
/dnmss \n\n\n\n \n"
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
creationTimestamp: "2022-04-15T02:44:07Z"
|
||||
name: kongconfig
|
||||
namespace: kong
|
||||
58
kong/templates/deployment.yaml
Normal file
58
kong/templates/deployment.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
namespace: kong
|
||||
name: kong
|
||||
labels:
|
||||
app: kong
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: kong
|
||||
#replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: kong
|
||||
spec:
|
||||
containers:
|
||||
- name: kong
|
||||
image: kong
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1000m
|
||||
requests:
|
||||
cpu: 100m
|
||||
env:
|
||||
- name: KONG_DATABASE
|
||||
value: 'off'
|
||||
- name: KONG_NGINX_WORKER_PROCESSES
|
||||
value: "1"
|
||||
- name: KONG_LOG_LEVEL
|
||||
value: notice
|
||||
- name: KONG_ADMIN_ACCESS_LOG
|
||||
value: /dev/stdout
|
||||
- name: KONG_PROXY_ERROR_LOG
|
||||
value: /dev/stderr
|
||||
- name: KONG_ADMIN_ERROR_LOG
|
||||
value: /dev/stderr
|
||||
- name: KONG_ADMIN_LISTEN
|
||||
value: '127.0.0.1:8001'
|
||||
- name: KONG_PROXY_LISTEN
|
||||
value: 0.0.0.0:8000,0.0.0.0:8443 ssl
|
||||
- name: KONG_DECLARATIVE_CONFIG
|
||||
value: /kong/config.yaml
|
||||
volumeMounts:
|
||||
- name: kongconfig
|
||||
mountPath: /kong
|
||||
ports:
|
||||
- name: data-http
|
||||
containerPort: 8000
|
||||
ports:
|
||||
- name: data-https
|
||||
containerPort: 8443
|
||||
volumes:
|
||||
- name: kongconfig
|
||||
configMap:
|
||||
name: kongconfig
|
||||
24
kong/templates/ingress.yaml
Normal file
24
kong/templates/ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: kong-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
external-dns.alpha.kubernetes.io/hostname: kong.durp.info
|
||||
spec:
|
||||
rules:
|
||||
- host: kong.durp.info
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: kong
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- kong.durp.info
|
||||
secretName: kong-durp-tls
|
||||
4
kong/templates/namespace.yaml
Normal file
4
kong/templates/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: kong
|
||||
16
kong/templates/service.yaml
Normal file
16
kong/templates/service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kong
|
||||
spec:
|
||||
ports:
|
||||
- name: kong-proxy-http
|
||||
port: 80
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
- name: kong-proxy-https
|
||||
port: 443
|
||||
targetPort: 8443
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: kong
|
||||
Reference in New Issue
Block a user