mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			823 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			823 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: v1beta1
 | 
						|
id: wordpress
 | 
						|
desiredState:
 | 
						|
  manifest:
 | 
						|
    version: v1beta1
 | 
						|
    id: wordpress
 | 
						|
    containers:
 | 
						|
      - name: wordpress
 | 
						|
        image: wordpress
 | 
						|
        ports:
 | 
						|
          - containerPort: 80
 | 
						|
        volumeMounts:
 | 
						|
            # name must match the volume name below
 | 
						|
          - name: wordpress-persistent-storage
 | 
						|
            # mount path within the container
 | 
						|
            mountPath: /var/www/html
 | 
						|
        env:
 | 
						|
          - name: WORDPRESS_DB_PASSWORD
 | 
						|
            # change this - must match mysql.yaml password
 | 
						|
            value: yourpassword
 | 
						|
    volumes:
 | 
						|
      - name: wordpress-persistent-storage
 | 
						|
        source:
 | 
						|
          # emptyDir: {}
 | 
						|
          persistentDisk:
 | 
						|
            # This GCE PD must already exist.
 | 
						|
            pdName: wordpress-disk
 | 
						|
            fsType: ext4
 | 
						|
labels:
 | 
						|
  name: wpfrontend
 | 
						|
kind: Pod
 |