-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM scratch | ||
COPY registry registry | ||
COPY manifests manifests | ||
|
||
ENV DEFAULT_NAMESPACE sealos | ||
ENV WECHAT_APPID | ||
ENV WECHAT_MCHAPIV3KEY | ||
ENV WECHAT_MCHID | ||
ENV WECHAT_PRIVATE_KEY | ||
ENV MONGODB_URI | ||
ENV STRIPE_API_KEY | ||
ENV STRIPE_CURRENCY | ||
ENV STRIPE_SUCCESS_POSTFIX | ||
ENV STRIPE_CANCEL_POSTFIX | ||
ENV MCH_CERTIFICATE_SERIAL_NUMBER | ||
|
||
CMD ["( kubectl create -f manifests/mongo-secret.yaml -n $DEFAULT_NAMESPACE || true ) && kubectl apply -f manifests/deploy.yaml"] |
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,51 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: pay-service | ||
cloud.sealos.io/app-deploy-manager: pay-service | ||
name: pay-service | ||
namespace: sealos | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 3 | ||
revisionHistoryLimit: 1 | ||
selector: | ||
matchLabels: | ||
app: pay-service | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 0 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: pay-service | ||
spec: | ||
containers: | ||
- envFrom: | ||
- secretRef: | ||
name: pay-secret | ||
optional: true | ||
image: ghcr.io/labring/sealos-pay-service:latest | ||
imagePullPolicy: Always | ||
name: pay-service | ||
ports: | ||
- containerPort: 2333 | ||
name: kxfckwudzwir | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 256Mi | ||
requests: | ||
cpu: 50m | ||
memory: 25Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 |
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,16 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: pay-secret | ||
namespace: {{ .DEFAULT_NAMESPACE }} | ||
stringData: | ||
AppID: {{ default "" .WECHAT_APPID }} | ||
MchAPIv3Key: {{ default "" .WECHAT_MCHAPIV3KEY }} | ||
MchCertificateSerialNumber: {{ default "" .MCH_CERTIFICATE_SERIAL_NUMBER }} | ||
MchID: {{ default "" .WECHAT_MCHID }} | ||
STRIPE_CANCEL_POSTFIX: {{ default "" .STRIPE_CANCEL_POSTFIX }} | ||
STRIPE_SUCCESS_POSTFIX: {{ default "" .STRIPE_SUCCESS_POSTFIX }} | ||
STRIPE_CURRENCY: {{ default "" .STRIPE_CURRENCY }} | ||
STRIPE_API_KEY: {{ default "" .STRIPE_API_KEY }} | ||
WechatPrivateKey: {{ default "" .WECHAT_PRIVATE_KEY }} | ||
dburi: {{ default "" .MONGODB_URI }} |