mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
update contrib/git-sync/demo to v1beta3
This commit is contained in:
parent
2ffb875129
commit
94c6c121cc
@ -1,50 +1,47 @@
|
||||
id: blog-pod
|
||||
apiVersion: v1beta3
|
||||
kind: Pod
|
||||
apiVersion: v1beta1
|
||||
desiredState:
|
||||
manifest:
|
||||
version: v1beta1
|
||||
containers:
|
||||
- name: git-sync
|
||||
image: proppy/git-sync
|
||||
imagePullPolicy: PullAlways
|
||||
env:
|
||||
- name: GIT_SYNC_REPO
|
||||
value: https://github.com/GoogleCloudPlatform/kubernetes.git
|
||||
- name: GIT_SYNC_DEST
|
||||
value: /git
|
||||
volumeMounts:
|
||||
- name: markdown
|
||||
mountPath: /git
|
||||
- name: hugo
|
||||
image: proppy/hugo
|
||||
imagePullPolicy: PullAlways
|
||||
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:
|
||||
- name: markdown
|
||||
mountPath: /src
|
||||
- name: html
|
||||
mountPath: /dest
|
||||
- name: nginx
|
||||
image: nginx
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html
|
||||
ports:
|
||||
- name: http-server
|
||||
containerPort: 80
|
||||
volumes:
|
||||
metadata:
|
||||
labels:
|
||||
name: blog
|
||||
name: blog-pod
|
||||
spec:
|
||||
containers:
|
||||
- name: git-sync
|
||||
image: gcr.io/google_containers/git-sync
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- name: markdown
|
||||
source:
|
||||
emptyDir: {}
|
||||
mountPath: /git
|
||||
env:
|
||||
- name: GIT_SYNC_REPO
|
||||
value: https://github.com/GoogleCloudPlatform/kubernetes.git
|
||||
- name: GIT_SYNC_DEST
|
||||
value: /git
|
||||
- name: hugo
|
||||
image: gcr.io/google_containers/hugo
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- name: markdown
|
||||
mountPath: /src
|
||||
- name: html
|
||||
source:
|
||||
emptyDir: {}
|
||||
labels:
|
||||
name: blog
|
||||
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
|
||||
image: nginx
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html
|
||||
ports:
|
||||
- name: http-server
|
||||
containerPort: 80
|
||||
volumes:
|
||||
- name: markdown
|
||||
emptyDir: {}
|
||||
- name: html
|
||||
emptyDir: {}
|
||||
|
@ -1,8 +1,10 @@
|
||||
id: blog-service
|
||||
apiVersion: v1beta3
|
||||
kind: Service
|
||||
apiVersion: v1beta1
|
||||
port: 80
|
||||
containerPort: 80
|
||||
selector:
|
||||
name: blog
|
||||
createExternalLoadBalancer: true
|
||||
metadata:
|
||||
name: blog-service
|
||||
spec:
|
||||
createExternalLoadBalancer: true
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
name: blog
|
||||
|
Loading…
Reference in New Issue
Block a user