mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
update contrib/git-sync/demo to v1beta3
This commit is contained in:
parent
2ffb875129
commit
94c6c121cc
@ -1,36 +1,37 @@
|
|||||||
id: blog-pod
|
apiVersion: v1beta3
|
||||||
kind: Pod
|
kind: Pod
|
||||||
apiVersion: v1beta1
|
metadata:
|
||||||
desiredState:
|
labels:
|
||||||
manifest:
|
name: blog
|
||||||
version: v1beta1
|
name: blog-pod
|
||||||
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: git-sync
|
- name: git-sync
|
||||||
image: proppy/git-sync
|
image: gcr.io/google_containers/git-sync
|
||||||
imagePullPolicy: PullAlways
|
imagePullPolicy: Always
|
||||||
|
volumeMounts:
|
||||||
|
- name: markdown
|
||||||
|
mountPath: /git
|
||||||
env:
|
env:
|
||||||
- name: GIT_SYNC_REPO
|
- name: GIT_SYNC_REPO
|
||||||
value: https://github.com/GoogleCloudPlatform/kubernetes.git
|
value: https://github.com/GoogleCloudPlatform/kubernetes.git
|
||||||
- name: GIT_SYNC_DEST
|
- name: GIT_SYNC_DEST
|
||||||
value: /git
|
value: /git
|
||||||
volumeMounts:
|
|
||||||
- name: markdown
|
|
||||||
mountPath: /git
|
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: proppy/hugo
|
image: gcr.io/google_containers/hugo
|
||||||
imagePullPolicy: PullAlways
|
imagePullPolicy: Always
|
||||||
env:
|
|
||||||
- name: HUGO_SRC
|
|
||||||
value: /src/contrib/git-sync/demo/blog
|
|
||||||
- name: HUGO_BUILD_DRAFT
|
|
||||||
value: 'true'
|
|
||||||
- name: HUGO_BASE_URL
|
|
||||||
value: example.com
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: markdown
|
- name: markdown
|
||||||
mountPath: /src
|
mountPath: /src
|
||||||
- name: html
|
- name: html
|
||||||
mountPath: /dest
|
mountPath: /dest
|
||||||
|
env:
|
||||||
|
- name: HUGO_SRC
|
||||||
|
value: /src/contrib/git-sync/demo/blog
|
||||||
|
- name: HUGO_BUILD_DRAFT
|
||||||
|
value: "true"
|
||||||
|
- name: HUGO_BASE_URL
|
||||||
|
value: example.com
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@ -41,10 +42,6 @@ desiredState:
|
|||||||
containerPort: 80
|
containerPort: 80
|
||||||
volumes:
|
volumes:
|
||||||
- name: markdown
|
- name: markdown
|
||||||
source:
|
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: html
|
- name: html
|
||||||
source:
|
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
labels:
|
|
||||||
name: blog
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
id: blog-service
|
apiVersion: v1beta3
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1beta1
|
metadata:
|
||||||
port: 80
|
name: blog-service
|
||||||
containerPort: 80
|
spec:
|
||||||
|
createExternalLoadBalancer: true
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
selector:
|
selector:
|
||||||
name: blog
|
name: blog
|
||||||
createExternalLoadBalancer: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user