Created
June 24, 2020 20:01
-
-
Save FauxFaux/912acca003300e2e14ff61c52ec1efec to your computer and use it in GitHub Desktop.
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
export function mongo(name: string): KRoot[] { | |
return [ | |
deploymentOf(name, { | |
name, | |
image: 'mongo:4-bionic', | |
ports: [{ containerPort: 27017 }], | |
readinessProbe: { | |
exec: { command: ['mongo', '--eval', '{ ping: 1 }'] }, | |
}, | |
}), | |
onePortService(name, 27017), | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment