-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from Backendless/stage
Stage -> master
- Loading branch information
Showing
30 changed files
with
493 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { handler, Router } from '../../utils/router' | ||
import { certManager } from '../../services/manage/cert-manager/cert-manager' | ||
import { changeConsulPortAvailability } from '../../services/manage/consul/change-consul-port-availability' | ||
|
||
export const router = new Router() | ||
|
||
|
||
router.get('/', handler(() => { | ||
return certManager.getIssuers() | ||
})) | ||
|
||
router.put('/external-port/:action', handler(({ params }) => { | ||
const enableNodePort = params.action === 'enable' | ||
return changeConsulPortAvailability(enableNodePort) | ||
})) | ||
|
||
router.delete('/:type', handler(async ({ params }) => { | ||
const isProd = params.type === 'prod' | ||
return certManager.deleteIssuer(isProd) | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
export class ConsulConfig { | ||
workload = { | ||
'apiVersion': 'apps/v1', | ||
'kind': 'StatefulSet', | ||
'metadata': { | ||
'annotations': { | ||
'name': 'bl-consul' | ||
}, | ||
'name': 'bl-consul' | ||
}, | ||
'spec': { | ||
'progressDeadlineSeconds': 60, | ||
'replicas': 1, | ||
'selector': { | ||
'matchLabels': { | ||
'app': 'bl-consul' | ||
} | ||
}, | ||
'strategy': { | ||
'rollingUpdate': { | ||
'maxSurge': 1, | ||
'maxUnavailable': 0 | ||
}, | ||
'type': 'RollingUpdate' | ||
}, | ||
'template': { | ||
'metadata': { | ||
'labels': { | ||
'app': 'bl-consul' | ||
} | ||
}, | ||
'spec': { | ||
'containers': [ | ||
{ | ||
'args': [ | ||
'agent', | ||
'-server', | ||
'-bootstrap-expect', | ||
'1', | ||
'-ui', | ||
'-client', | ||
'0.0.0.0', | ||
'-data-dir=/consul/data', | ||
'-disable-host-node-id=true' | ||
], | ||
'image': 'consul:1.1.0', | ||
'imagePullPolicy': 'IfNotPresent', | ||
'name': 'bl-consul', | ||
'ports': [ | ||
{ | ||
'containerPort': 8500, | ||
'name': 'bl-consul', | ||
'protocol': 'TCP' | ||
} | ||
], | ||
'volumeMounts': [ | ||
{ | ||
'mountPath': '/consul/data', | ||
'name': 'consul-data' | ||
} | ||
] | ||
} | ||
], | ||
'restartPolicy': 'Always', | ||
'volumes': [ | ||
|
||
] | ||
} | ||
} | ||
} | ||
} | ||
|
||
service = { | ||
'apiVersion': 'v1', | ||
'kind': 'Service', | ||
'metadata': { | ||
'name': 'bl-consul', | ||
'labels': { | ||
'app': 'bl-consul' | ||
} | ||
}, | ||
'spec': { | ||
'type': 'NodePort', | ||
'ports': [ | ||
{ | ||
'port': 8500, | ||
'targetPort': 8500, | ||
'name': 'bl-consul', | ||
'nodePort': 32600 | ||
} | ||
], | ||
'selector': { | ||
'app': 'bl-consul' | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.