Created
August 5, 2022 14:48
-
-
Save flyotlin/fbc86aea540b83d9b84615dc27333489 to your computer and use it in GitHub Desktop.
Revisions
-
flyotlin created this gist
Aug 5, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: selector: matchLabels: app: my-app template: metadata: labels: app: my-app spec: containers: - name: my-app # image 在 private registry 的位置以及 tag image: registry.gitlab.com/flyotlin/my-app/my-app:latest resources: limits: memory: "128Mi" cpu: "500m" # 讓 private registry authenticate k8s imagePullSecrets: - name: regcred