parent
748d783d36
commit
715636b305
@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: docker-secret
|
||||||
|
namespace: default
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
# {
|
||||||
|
# "auths": {
|
||||||
|
# "your.registry.com": {
|
||||||
|
# "username": "username",
|
||||||
|
# "password": "psw",
|
||||||
|
# "email": "openim@example.com",
|
||||||
|
# "auth": "dXNlcm5hbWU6cHN3"
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
# Base64 encoded .docerconfigjson content
|
||||||
|
.dockerconfigjson: "ewogICJhdXRocyI6IHsKICAgICJ5b3VyLnJlZ2lzdHJ5LmNvbSI6IHsKICAgICAgInVzZXJuYW1lIjogInVzZXJuYW1lIiwKICAgICAgInBhc3N3b3JkIjogInBzdyIsCiAgICAgICJlbWFpbCI6ICAgICJvcGVuaW1AZXhhbXBsZS5jb20iLAogICAgICAiYXV0aCI6ICAgICAiZFhObGNtNWhiV1U2Y0hOMyIKICAgIH0KICB9Cn0="
|
@ -0,0 +1,35 @@
|
|||||||
|
# HTTPS Ingress (TLS + cert-manager)
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: openim-ingress-https
|
||||||
|
namespace: default
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- openim-api.localtest.me
|
||||||
|
secretName: openim-api-tls
|
||||||
|
rules:
|
||||||
|
- host: openim-api.localtest.me
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /api/(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: openim-api-service
|
||||||
|
port:
|
||||||
|
number: 10002
|
||||||
|
- path: /msg_gateway/(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: messagegateway-rpc-service
|
||||||
|
port:
|
||||||
|
number: 10001
|
@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: openim-api-tls
|
||||||
|
namespace: default
|
||||||
|
type: kubernetes.io/tls
|
||||||
|
data:
|
||||||
|
tls.crt: <base64-encoded-tls.crt>
|
||||||
|
tls.key: <base64-encoded-tls.key>
|
Loading…
Reference in new issue