Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration yamlfiles #347

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
101 changes: 101 additions & 0 deletions migration-yamls/audit-client-deploy-v311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: oes
component: auditclient-new
name: oes-audit-client-v311
spec:
replicas: 1
selector:
matchLabels:
app: oes
component: auditclient-v311
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: oes
component: auditclient-v311
spec:
containers:
- image: ${auditclient-image}
imagePullPolicy: IfNotPresent
name: oes-audit-client-v311
ports:
- containerPort: 8098
name: backend
protocol: TCP
livenessProbe:
failureThreshold: 3
httpGet:
path: /mgmt/health
port: 8098
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8098
timeoutSeconds: 1
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 500m
memory: 500Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opsmx/conf/audit-client-local.yml
name: audit-config-volume
subPath: audit-local.yml
- mountPath: /opsmx/conf/bootstrap.yml
name: bootstrap-config-volume
subPath: bootstrap.yml
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: opsmxdev-secret
- name: opsmx11-secret
initContainers:
- command:
- /bin/bash
- -c
- sleep 30;echo Waiting for oes-db to be up and running; pg_isready -h oes-db
-p 5432 && echo PostgreSQL DB is ready to receive connections
image: postgres:9.6.5
imagePullPolicy: IfNotPresent
name: db-check
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- secret:
defaultMode: 420
items:
- key: audit-local.yml
path: audit-local.yml
secretName: oes-audit-client-config-v311
name: audit-config-volume
- secret:
defaultMode: 420
items:
- key: bootstrap.yml
path: bootstrap.yml
secretName: bootstrap
name: bootstrap-config-volume
10 changes: 10 additions & 0 deletions migration-yamls/audit-client-secret-v311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
data:
audit-local.yml: ICAgIHNwcmluZzoKICAgICAgZGF0YXNvdXJjZToKICAgICAgICB1cmw6IGpkYmM6cG9zdGdyZXNxbDovL29lcy1kYjo1NDMyL2F1ZGl0ZGIKICAgICAgICB1c2VybmFtZTogcG9zdGdyZXMKICAgICAgICBwYXNzd29yZDogbmV0d29ya3MxMjMKICAgIGxvZ2dpbmc6CiAgICAgIGxldmVsOgogICAgICAgIGNvbS5vcHNteC5hdWRpdGNsaWVudHNlcnZpY2U6IERFQlVHCiAgICBvZXM6CiAgICAgIGFkbWluOgogICAgICAgIHVzZXI6IGFkbWluCiAgICBmZWlnbjoKICAgICAgY2xpZW50OgogICAgICAgIGNvbmZpZzoKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIGNvbm5lY3RUaW1lb3V0OiA1MDAwCiAgICAgICAgICAgIHJlYWRUaW1lb3V0OiA1MDAwCiAgICAgICAgICAgIGxvZ2dlckxldmVsOiBiYXNpYwogICAgICAgIHBsYXRmb3Jtc2VydmljZToKICAgICAgICAgIG5hbWU6IHBsYXRmb3Jtc2VydmljZQogICAgICAgICAgdXJsOiBodHRwOi8vb2VzLXBsYXRmb3JtOjgwOTUKICAgICAgICB2aXNpYmlsaXR5c2VydmljZToKICAgICAgICAgIG5hbWU6IHZpc2liaWxpdHlzZXJ2aWNlCiAgICAgICAgICB1cmw6IGh0dHA6Ly9vZXMtdmlzaWJpbGl0eTo4MDk2
kind: Secret
metadata:
labels:
app: oes
component: auditclient-v311
name: oes-audit-client-config-v311
type: Opaque
20 changes: 20 additions & 0 deletions migration-yamls/audit-client-svc-v311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: oes
component: auditclient-v311
name: oes-audit-client-v311
spec:
ports:
- name: auditclient
port: 8098
protocol: TCP
targetPort: 8098
selector:
app: oes
component: auditclient-v311
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
101 changes: 101 additions & 0 deletions migration-yamls/audit-service-deploy-v311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: oes
component: auditservice-v311
name: oes-audit-service-v311
spec:
replicas: 1
selector:
matchLabels:
app: oes
component: auditservice-v311
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: oes
component: auditservice-v311
spec:
containers:
- image: ${auditservice-image}
imagePullPolicy: IfNotPresent
name: oes-audit-service-v311
ports:
- containerPort: 8097
name: backend
protocol: TCP
livenessProbe:
failureThreshold: 3
httpGet:
path: /mgmt/health
port: 8097
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8097
timeoutSeconds: 1
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 500m
memory: 500Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opsmx/conf/audit-service-local.yml
name: audit-config-volume
subPath: audit-local.yml
- mountPath: /opsmx/conf/bootstrap.yml
name: bootstrap-config-volume
subPath: bootstrap.yml
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: opsmxdev-secret
- name: opsmx11-secret
initContainers:
- command:
- /bin/bash
- -c
- sleep 30;echo Waiting for oes-db to be up and running; pg_isready -h oes-db
-p 5432 && echo PostgreSQL DB is ready to receive connections
image: postgres:9.6.5
imagePullPolicy: IfNotPresent
name: db-check
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- secret:
defaultMode: 420
items:
- key: audit-local.yml
path: audit-local.yml
secretName: oes-audit-service-config-v311
name: audit-config-volume
- secret:
defaultMode: 420
items:
- key: bootstrap.yml
path: bootstrap.yml
secretName: bootstrap
name: bootstrap-config-volume
10 changes: 10 additions & 0 deletions migration-yamls/audit-service-secret-v311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
data:
audit-local.yml: ICAgIHNwcmluZzoKICAgICAgZGF0YXNvdXJjZToKICAgICAgICB1cmw6IGpkYmM6cG9zdGdyZXNxbDovL29lcy1kYjo1NDMyL2F1ZGl0ZGIKICAgICAgICB1c2VybmFtZTogcG9zdGdyZXMKICAgICAgICBwYXNzd29yZDogbmV0d29ya3MxMjMKICAgIGxvZ2dpbmc6CiAgICAgIGxldmVsOgogICAgICAgIGNvbS5vcHNteC5hdWRpdHNlcnZpY2U6IERFQlVHCiAgICBmZWlnbjoKICAgICAgY2xpZW50OgogICAgICAgIGNvbmZpZzoKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIGNvbm5lY3RUaW1lb3V0OiAxMDAwMDAKICAgICAgICAgICAgcmVhZFRpbWVvdXQ6IDEwMDAwMAogICAgICAgICAgICBsb2dnZXJMZXZlbDogYmFzaWMKICAgICAgICBwbGF0Zm9ybXNlcnZpY2U6CiAgICAgICAgICBuYW1lOiBwbGF0Zm9ybXNlcnZpY2UKICAgICAgICAgIHVybDogaHR0cDovL29lcy1wbGF0Zm9ybTo4MDk1CiAgICAgICAgYXVkaXRjbGllbnRzZXJ2aWNlOgogICAgICAgICAgbmFtZTogYXVkaXRjbGllbnRzZXJ2aWNlCiAgICAgICAgICB1cmw6IGh0dHA6Ly9vZXMtYXVkaXQtY2xpZW50LXYzMTE6ODA5OAogICAgICAgIG9lczoKICAgICAgICAgIHVybDogaHR0cDovL29lcy1zYXBvcjo4MDg1CiAgICAgICAgYXV0b3BpbG90OgogICAgICAgICAgdXJsOiBodHRwOi8vb2VzLWF1dG9waWxvdDo4MDkwCiAgICAgICAgdmlzaWJpbGl0eXNlcnZpY2U6CiAgICAgICAgICB1cmw6IGh0dHA6Ly9vZXMtdmlzaWJpbGl0eTo4MDk2CiAgICAgICAgZGFzaGJvYXJkOgogICAgICAgICAgdXJsOiBodHRwOi8vb2VzLWRhc2hib2FyZDo4MDk0
kind: Secret
metadata:
labels:
app: oes
component: auditservice
name: oes-audit-service-config-v311
type: Opaque
20 changes: 20 additions & 0 deletions migration-yamls/audit-service-svc-v311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: oes
component: auditservice-v311
name: oes-audit-service-v311
spec:
ports:
- name: auditservice
port: 8097
protocol: TCP
targetPort: 8097
selector:
app: oes
component: auditservice-v311
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}