Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Diff between the v1 and v2 k8s-deployment-demo replication controller manifests
diff --git a/demo-rc-v0.1.yml b/demo-rc-v0.2.yml
index 985c09f..f464cdf 100644
--- a/demo-rc-v0.1.yml
+++ b/demo-rc-v0.2.yml
@@ -2,25 +2,25 @@
apiVersion: v1
kind: ReplicationController
metadata:
- name: k8s-deployment-demo-controller-v1
+ name: k8s-deployment-demo-controller-v2
spec:
replicas: 4
selector:
app: k8s-deployment-demo
- version: v0.1
+ version: v0.2
template:
metadata:
labels:
app: k8s-deployment-demo
- version: v0.1
+ version: v0.2
spec:
containers:
- name: k8s-deployment-demo
- image: ryane/k8s-deployment-demo:0.1
+ image: ryane/k8s-deployment-demo:0.2
imagePullPolicy: Always
ports:
- containerPort: 8081
protocol: TCP
env:
- name: DEMO_ENV
- value: staging
+ value: production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.