This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #41 from phpdocker-io/remove-cron
Remove built-in cron and matching kubernetes deployment
- Loading branch information
Showing
5 changed files
with
31 additions
and
87 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -22,6 +22,8 @@ spec: | |
--- | ||
|
||
# Make sure you edit your config below at the environment vars | ||
# Ensures certbot doesn't loop forever on fail to avoid exhausting your LE quotas in case of initial misconfiguration | ||
|
||
|
||
apiVersion: batch/v1beta1 | ||
kind: CronJob | ||
|
@@ -33,31 +35,29 @@ spec: | |
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
completions: 1 | ||
backoffLimit: 0 | ||
template: | ||
# Matches selector on service above | ||
metadata: | ||
labels: | ||
app: kong-certbot | ||
spec: | ||
# Ensure certbot doesn't loop forever on fail to avoid exhausting your LE quotas in case of initial misconfiguration | ||
completions: 1 | ||
backoffLimit: 0 | ||
restartPolicy: Never | ||
|
||
containers: | ||
- name: runtime | ||
image: phpdockerio/kong-certbot-agent:latest | ||
command: [ "/workdir/certbot-agent", "certs:update", "$(KONG_ENDPOINT)", "$(EMAIL)", "$(DOMAINS)" ] | ||
ports: | ||
- name: web | ||
containerPort: 80 | ||
protocol: TCP | ||
env: | ||
- name: TERM | ||
value: linux | ||
- name: KONG_ENDPOINT | ||
value: http://base.path.to.kong.admin:8001 | ||
- name: EMAIL | ||
value: [email protected] | ||
- name: DOMAINS | ||
value: comma.separated,list.of,domains.and.subdomains | ||
- name: runtime | ||
image: phpdockerio/kong-certbot-agent:3.0.0 | ||
command: [ "/workdir/certbot-agent", "certs:update", "$(KONG_ENDPOINT)", "$(EMAIL)", "$(DOMAINS)" ] | ||
ports: | ||
- name: web | ||
containerPort: 80 | ||
protocol: TCP | ||
env: | ||
- name: TERM | ||
value: linux | ||
- name: KONG_ENDPOINT | ||
value: http://base.path.to.kong.admin:8001 | ||
- name: EMAIL | ||
value: [email protected] | ||
- name: DOMAINS | ||
value: comma.separated,list.of,domains.and.subdomains |