added cleanup for apps and worker for k8s
This commit is contained in:
@@ -53,7 +53,7 @@ data:
|
||||
SSO_REDIRECT_URL: ""
|
||||
TZ: "Europe/Amsterdam \t\t\t\t\t"
|
||||
IS_KUBERNETES: "true"
|
||||
REGISTRY_URL: "172.17.14.71:5000"
|
||||
REGISTRY_URL: "shuffle-registry:5000"
|
||||
#REGISTRY_AUTH: ""
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
|
||||
@@ -24,10 +24,10 @@ spec:
|
||||
io.kompose.network/shuffle: "true"
|
||||
io.kompose.service: orborus
|
||||
spec:
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
hostPath:
|
||||
path: /var/run/docker.sock
|
||||
# volumes:
|
||||
# - name: docker-socket
|
||||
# hostPath:
|
||||
# path: /var/run/docker.sock
|
||||
containers:
|
||||
- env:
|
||||
- name: BASE_URL
|
||||
@@ -61,9 +61,9 @@ spec:
|
||||
imagePullPolicy: Never
|
||||
name: shuffle-orborus
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- name: docker-socket
|
||||
mountPath: /var/run/docker.sock
|
||||
# volumeMounts:
|
||||
# - name: docker-socket
|
||||
# mountPath: /var/run/docker.sock
|
||||
hostname: shuffle-orborus
|
||||
restartPolicy: Always
|
||||
status: {}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: shuffle-registry
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: shuffle-registry
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: shuffle-registry
|
||||
spec:
|
||||
initContainers:
|
||||
- name: generate-certs
|
||||
image: frapsoft/openssl
|
||||
command: ["openssl"]
|
||||
args:
|
||||
- req
|
||||
- -newkey
|
||||
- rsa:4096
|
||||
- -nodes
|
||||
- -sha256
|
||||
- -x509
|
||||
- -days
|
||||
- "365"
|
||||
- -keyout
|
||||
- /certs/domain.key
|
||||
- -out
|
||||
- /certs/domain.crt
|
||||
- -subj
|
||||
- "/CN=shuffle-registry.default.svc.cluster.local"
|
||||
volumeMounts:
|
||||
- name: certs
|
||||
mountPath: /certs
|
||||
containers:
|
||||
- name: registry
|
||||
image: registry:2
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
env:
|
||||
- name: REGISTRY_HTTP_TLS_CERTIFICATE
|
||||
value: "/certs/domain.crt"
|
||||
- name: REGISTRY_HTTP_TLS_KEY
|
||||
value: "/certs/domain.key"
|
||||
volumeMounts:
|
||||
- name: certs
|
||||
mountPath: "/certs"
|
||||
volumes:
|
||||
- name: certs
|
||||
emptyDir: {}
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: shuffle-registry
|
||||
spec:
|
||||
selector:
|
||||
app: shuffle-registry
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
Reference in New Issue
Block a user