Created
June 9, 2024 15:58
-
-
Save 3ng1n33r/705dde8c7b7dc33fccc4d2d7b137bf41 to your computer and use it in GitHub Desktop.
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 characters
apiVersion: argoproj.io/v1alpha1 | |
kind: Rollout | |
metadata: | |
name: bluegreen-demo | |
labels: | |
app: bluegreen-demo | |
spec: | |
replicas: 3 | |
revisionHistoryLimit: 1 | |
selector: | |
matchLabels: | |
app: bluegreen-demo | |
template: | |
metadata: | |
labels: | |
app: bluegreen-demo | |
spec: | |
containers: | |
- name: bluegreen-demo | |
image: gcr.io/google-samples/hello-app:1.0 | |
imagePullPolicy: Always | |
ports: | |
- name: http | |
containerPort: 8080 | |
protocol: TCP | |
resources: | |
requests: | |
memory: 32Mi | |
cpu: 5m | |
limits: | |
memory: 32Mi | |
strategy: | |
blueGreen: | |
autoPromotionEnabled: false | |
activeService: bluegreen-demo-active | |
previewService: bluegreen-demo-preview | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: bluegreen-demo-active | |
labels: | |
app: bluegreen-demo | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
name: http | |
selector: | |
app: bluegreen-demo | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: bluegreen-demo-preview | |
labels: | |
app: bluegreen-demo | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
name: http | |
selector: | |
app: bluegreen-demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment